Skip to content

Commit d3cf0a6

Browse files
committed
test(isVAT): add Italian regex testing
1 parent 20f7a54 commit d3cf0a6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test/validators.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10216,6 +10216,22 @@ describe('Validators', () => {
1021610216
],
1021710217
});
1021810218

10219+
test({
10220+
validator: 'isVAT',
10221+
args: ['IT'],
10222+
valid: [
10223+
'IT12345678910',
10224+
'12345678910',
10225+
],
10226+
invalid: [
10227+
'IT12345678 910',
10228+
'IT 123456789101',
10229+
'IT123456789101',
10230+
'GB12345678910',
10231+
'IT123456789',
10232+
],
10233+
});
10234+
1021910235
test({
1022010236
validator: 'isVAT',
1022110237
args: ['invalidCountryCode'],

0 commit comments

Comments
 (0)