payments
Version:
Lists various payment methods. Used by Wix Restaurants for payment configuration.
19 lines (14 loc) • 579 B
JavaScript
import { expect } from 'chai';
import * as methods from '../src/methods';
describe('Getting method by country tests', () => {
it ('returns the expected object when fetching Israel', () => {
const israeliMethods = methods.getMethodsForCountry('IL');
expect(israeliMethods).to.have.length.of(4);
});
});
describe('Locale tests)', () => {
const i18nGet = (token) => token;
it ('returns "method_cash_title" for "cash" (method name)', () => {
expect(methods.getMethodDisplayName(i18nGet, 'cash')).to.equal('method_cash_title');
});
});