lion/packages/ui/components/input-iban/test/formatters.test.js
2022-10-31 16:55:07 +01:00

13 lines
349 B
JavaScript

import { expect } from '@open-wc/testing';
import { formatIBAN } from '@lion/ui/input-iban.js';
describe('formatIBAN', () => {
it('formats the IBAN', () => {
expect(formatIBAN('NL17INGB0002822608')).to.equal('NL17 INGB 0002 8226 08');
});
it('returns `` if no value is given', () => {
expect(formatIBAN('')).to.equal('');
});
});