lion/packages/input-iban/test/parsers.test.js

9 lines
293 B
JavaScript

import { expect } from '@open-wc/testing';
import { parseIBAN } from '../src/parsers.js';
describe('parseIBAN', () => {
it('parses formatted value by trimming spaces and making uppercase', () => {
expect(parseIBAN(' nl17 InGB 0002 8226 08 ')).to.equal('NL17INGB0002822608');
});
});