forked from Availity/availity-reactstrap-validation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(EmailValidation): ignore case +match whole str (Availity#60) (Ava…
…ility#61) Closes Availity#56, Closes Availity#59
- Loading branch information
1 parent
6020830
commit b5c7539
Showing
2 changed files
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ describe('Email Validation', () => { | |
expect(fn('[email protected]')).to.be.true; | ||
expect(fn('[email protected]')).to.be.true; | ||
expect(fn('[email protected]')).to.be.true; | ||
expect(fn('[email protected]')).to.be.true; | ||
}); | ||
|
||
it('should return false for an invalid email', () => { | ||
|
@@ -21,5 +22,6 @@ describe('Email Validation', () => { | |
expect(fn('[email protected]')).to.be.false; | ||
expect(fn('evan.sharp')).to.be.false; | ||
expect(fn('availity.com')).to.be.false; | ||
expect(fn('Evan@[email protected]')).to.be.false; | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters