Skip to content

Commit 72c8dc1

Browse files
fix(isPassport): added tests for ZA Passport Number (#2270)
1 parent 817e56e commit 72c8dc1

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

test/validators.test.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3686,6 +3686,21 @@ describe('Validators', () => {
36863686
'7903699371',
36873687
],
36883688
});
3689+
3690+
test({
3691+
validator: 'isPassportNumber',
3692+
args: ['ZA'],
3693+
valid: [
3694+
'T12345678',
3695+
'A12345678',
3696+
'M12345678',
3697+
'D12345678',
3698+
],
3699+
invalid: [
3700+
'123456789',
3701+
'Z12345678',
3702+
],
3703+
});
36893704
});
36903705

36913706
it('should validate decimal numbers', () => {

0 commit comments

Comments
 (0)