Skip to content

Commit

Permalink
test(isVAT): add Italian regex testing
Browse files Browse the repository at this point in the history
  • Loading branch information
fedeci committed Dec 1, 2020
1 parent 20f7a54 commit d3cf0a6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -10216,6 +10216,22 @@ describe('Validators', () => {
],
});

test({
validator: 'isVAT',
args: ['IT'],
valid: [
'IT12345678910',
'12345678910',
],
invalid: [
'IT12345678 910',
'IT 123456789101',
'IT123456789101',
'GB12345678910',
'IT123456789',
],
});

test({
validator: 'isVAT',
args: ['invalidCountryCode'],
Expand Down

0 comments on commit d3cf0a6

Please sign in to comment.