Skip to content

Commit

Permalink
One more test for email validation for completeness.
Browse files Browse the repository at this point in the history
  • Loading branch information
cristipaval committed Aug 1, 2023
1 parent 56db2a0 commit 0db793f
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('abc@gmail.com')).toBeTruthy();
expect(Str.isValidEmail('test@gmail')).toBeFalsy();
expect(Str.isValidEmail('@gmail.com')).toBeFalsy();
expect(Str.isValidEmail('usernamelongerthan64charactersshouldnotworkaccordingtorfc822whichisusedbyphp@gmail.com')).toBeFalsy();
});
});

0 comments on commit 0db793f

Please sign in to comment.