Skip to content

Commit

Permalink
#1374 Add tests with dashes
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed May 29, 2020
1 parent 12c5384 commit fd0328a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]")
}
Expand All @@ -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")
}
}
}

0 comments on commit fd0328a

Please sign in to comment.