Skip to content

Commit

Permalink
Merge pull request #563 from Expensify/cristi-test-email-regex
Browse files Browse the repository at this point in the history
One more test for email validation
  • Loading branch information
youssef-lr authored Aug 2, 2023
2 parents 56db2a0 + 0db793f commit b60e464
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions __tests__/Str-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ describe('Str.isValidEmail', () => {
it('Correctly detects a valid email', () => {
expect(Str.isValidEmail('[email protected]')).toBeTruthy();
expect(Str.isValidEmail('test@gmail')).toBeFalsy();
expect(Str.isValidEmail('@gmail.com')).toBeFalsy();
expect(Str.isValidEmail('usernamelongerthan64charactersshouldnotworkaccordingtorfc822whichisusedbyphp@gmail.com')).toBeFalsy();
});
});

0 comments on commit b60e464

Please sign in to comment.