Skip to content

Commit

Permalink
fix(isPassport): added tests for ZA Passport Number (#2270)
Browse files Browse the repository at this point in the history
  • Loading branch information
GMorris-professional authored Apr 27, 2024
1 parent 817e56e commit 72c8dc1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/validators.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3686,6 +3686,21 @@ describe('Validators', () => {
'7903699371',
],
});

test({
validator: 'isPassportNumber',
args: ['ZA'],
valid: [
'T12345678',
'A12345678',
'M12345678',
'D12345678',
],
invalid: [
'123456789',
'Z12345678',
],
});
});

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

0 comments on commit 72c8dc1

Please sign in to comment.