Skip to content

Commit

Permalink
add test for invalid phone number
Browse files Browse the repository at this point in the history
  • Loading branch information
lwinmoehein committed Nov 7, 2023
1 parent 1c2bc9e commit 8f36f0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions __tests__/GetOperator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ describe('Phone Number validation checks', () => {
test('Should return true for valid MECTel phone number', () => {
expect(mmphone.getOperator("09301173991")).toBe(Operator.MECTEL);
});
test('Should return true for invalid phone number', () => {
expect(mmphone.getOperator("0911223344881")).toBe(Operator.INVALID);
});

});

0 comments on commit 8f36f0f

Please sign in to comment.