summaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-12-13 14:21:23 -0800
committerReed Garmsen <rgarmsen2295@gmail.com>2015-12-13 14:21:23 -0800
commite7eb86c8c31e7d0cfd7f18efdefc4ac50171e8a0 (patch)
tree133188de65432b9e56f8739bce48888cf36e53df /model
parentce03fbc6d8176b6d5a903312241a948f59785a04 (diff)
downloadchat-e7eb86c8c31e7d0cfd7f18efdefc4ac50171e8a0.tar.gz
chat-e7eb86c8c31e7d0cfd7f18efdefc4ac50171e8a0.tar.bz2
chat-e7eb86c8c31e7d0cfd7f18efdefc4ac50171e8a0.zip
Updated emails in unit tests to include '+'
Diffstat (limited to 'model')
-rw-r--r--model/team_test.go2
-rw-r--r--model/utils_test.go8
2 files changed, 5 insertions, 5 deletions
diff --git a/model/team_test.go b/model/team_test.go
index 112d48a9d..4b691e76a 100644
--- a/model/team_test.go
+++ b/model/team_test.go
@@ -45,7 +45,7 @@ func TestTeamIsValid(t *testing.T) {
t.Fatal("should be invalid")
}
- o.Email = "corey@hulen.com"
+ o.Email = "corey+test@hulen.com"
o.DisplayName = strings.Repeat("01234567890", 20)
if err := o.IsValid(true); err == nil {
t.Fatal("should be invalid")
diff --git a/model/utils_test.go b/model/utils_test.go
index 1f1e5f023..6d6f9e653 100644
--- a/model/utils_test.go
+++ b/model/utils_test.go
@@ -56,21 +56,21 @@ func TestMapJson(t *testing.T) {
}
func TestValidEmail(t *testing.T) {
- if !IsValidEmail("corey@hulen.com") {
+ if !IsValidEmail("corey+test@hulen.com") {
t.Error("email should be valid")
}
- if IsValidEmail("@corey@hulen.com") {
+ if IsValidEmail("@corey+test@hulen.com") {
t.Error("should be invalid")
}
}
func TestValidLower(t *testing.T) {
- if !IsLower("corey@hulen.com") {
+ if !IsLower("corey+test@hulen.com") {
t.Error("should be valid")
}
- if IsLower("Corey@hulen.com") {
+ if IsLower("corey+test@hulen.com") {
t.Error("should be invalid")
}
}