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 Nov 30, 2020
1 parent c59a4bd commit e25fa20
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 @@ -10197,6 +10197,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 e25fa20

Please sign in to comment.