We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49079d8 commit 5039684Copy full SHA for 5039684
packages/validation/src/validation.test.ts
@@ -48,13 +48,18 @@ describe('no', () => {
48
});
49
50
test.each([
51
- ['12345678903', true],
52
- ['12345678901', false],
53
- ['9523 08 20059', false],
54
- ['95230820052', false],
55
- ['9523.08.20059', false],
56
- ])('validateAccountNumber(%s) -> %s', (input, expected) => {
57
- expect(no.validateAccountNumber(input)).toBe(expected);
+ ['12345678903', true, undefined],
+ ['12345678901', false, undefined],
+ ['1234 56 78903', false, undefined],
+ ['95230820052', false, undefined],
+ ['9523.08.20059', false, undefined],
+
+ ['1234 56 78903', true, { allowFormatting: true }],
58
+ ['1234 56 78903', false, { allowFormatting: false }],
59
+ ['9523.08.20059', true, { allowFormatting: true }],
60
+ ['9523.08.20059', false, { allowFormatting: false }],
61
+ ])('validateAccountNumber(%s) -> %s', (input, expected, options) => {
62
+ expect(no.validateAccountNumber(input, options)).toBe(expected);
63
64
65
0 commit comments