Skip to content

Commit

Permalink
Added test cases for isMobilePhone en-BW
Browse files Browse the repository at this point in the history
Added some test cases to check length for the phone number & area code pattern.
  • Loading branch information
mgndolan committed Oct 10, 2021
1 parent 5bd62c4 commit bb6f0ca
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -7835,6 +7835,25 @@ describe('Validators', () => {
'23274560591 ',
],
},
{
locale: 'en-BW',
valid: [
'+26754868990',
'+267543687909',
'+2670745605',
'26774560591',
'2670745605',
],
invalid: [
'0799375902',
'12345',
'+2670745605448',
'2670745605482',
'267074560',
'2670ab5608',
'+267074560',
],
},
{
locale: 'az-AZ',
valid: [
Expand Down

0 comments on commit bb6f0ca

Please sign in to comment.