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 20f7a54 commit d3cf0a6Copy full SHA for d3cf0a6
test/validators.js
@@ -10216,6 +10216,22 @@ describe('Validators', () => {
10216
],
10217
});
10218
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
+
10235
test({
10236
validator: 'isVAT',
10237
args: ['invalidCountryCode'],
0 commit comments