summaryrefslogtreecommitdiffstats
path: root/model/utils_test.go
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/utils_test.go
parentce03fbc6d8176b6d5a903312241a948f59785a04 (diff)
downloadchat-e7eb86c8c31e7d0cfd7f18efdefc4ac50171e8a0.tar.gz
chat-e7eb86c8c31e7d0cfd7f18efdefc4ac50171e8a0.tar.bz2
chat-e7eb86c8c31e7d0cfd7f18efdefc4ac50171e8a0.zip
Updated emails in unit tests to include '+'
Diffstat (limited to 'model/utils_test.go')
-rw-r--r--model/utils_test.go8
1 files changed, 4 insertions, 4 deletions
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")
}
}