summaryrefslogtreecommitdiffstats
path: root/api/user_test.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-01-25 09:32:42 -0500
committerHarrison Healey <harrisonmhealey@gmail.com>2017-01-25 09:32:42 -0500
commitd245b29f82a03f1aff966a2fb2100a5703d82f32 (patch)
treecf204039af74fa2579e0291e9e595f08411b0a7a /api/user_test.go
parent8ed665cb76c0763e83a2949c4bdd70153baf72f7 (diff)
downloadchat-d245b29f82a03f1aff966a2fb2100a5703d82f32.tar.gz
chat-d245b29f82a03f1aff966a2fb2100a5703d82f32.tar.bz2
chat-d245b29f82a03f1aff966a2fb2100a5703d82f32.zip
More app code migration (#5170)
* Migrate admin functions into app package * More user function refactoring * Move post functions into app package
Diffstat (limited to 'api/user_test.go')
-rw-r--r--api/user_test.go27
1 files changed, 1 insertions, 26 deletions
diff --git a/api/user_test.go b/api/user_test.go
index a7d6224ea..5a398a716 100644
--- a/api/user_test.go
+++ b/api/user_test.go
@@ -83,32 +83,6 @@ func TestCreateUser(t *testing.T) {
}
}
-func TestCheckUserDomain(t *testing.T) {
- th := Setup().InitBasic()
- user := th.BasicUser
-
- cases := []struct {
- domains string
- matched bool
- }{
- {"simulator.amazonses.com", true},
- {"gmail.com", false},
- {"", true},
- {"gmail.com simulator.amazonses.com", true},
- }
- for _, c := range cases {
- matched := CheckUserDomain(user, c.domains)
- if matched != c.matched {
- if c.matched {
- t.Logf("'%v' should have matched '%v'", user.Email, c.domains)
- } else {
- t.Logf("'%v' should not have matched '%v'", user.Email, c.domains)
- }
- t.FailNow()
- }
- }
-}
-
func TestLogin(t *testing.T) {
th := Setup().InitBasic()
Client := th.BasicClient
@@ -1356,6 +1330,7 @@ func TestResetPassword(t *testing.T) {
}
if _, err := Client.ResetPassword(recovery.Code, "newpwd1"); err != nil {
+ t.Log(recovery.Code)
t.Fatal(err)
}