-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
0 deletions.
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 |
---|---|---|
|
@@ -13,6 +13,9 @@ class UserNormalisationTest extends PlaySpecification with Conversion { | |
"convert simple name" in { | ||
normaliseLogin("myLogin") must beEqualTo("[email protected]") | ||
} | ||
"convert simple name with dash" in { | ||
normaliseLogin("my-Login") must beEqualTo("[email protected]") | ||
} | ||
"convert email address" in { | ||
normaliseLogin("[email protected]") must beEqualTo("[email protected]") | ||
} | ||
|
@@ -34,5 +37,8 @@ class UserNormalisationTest extends PlaySpecification with Conversion { | |
"convert email with invalid domain" in { | ||
normaliseLogin("first@```") must beEqualTo("[email protected]") | ||
} | ||
"convert email with dash" in { | ||
normaliseLogin("-first-name-@-domain-name-") must beEqualTo("first-name@domain-name") | ||
} | ||
} | ||
} |