diff --git a/api/user_test.go b/api/user_test.go index 2aac51d..3f3bc4d 100644 --- a/api/user_test.go +++ b/api/user_test.go @@ -1,7 +1,6 @@ package api import ( - "io/ioutil" "net/http/httptest" "strings" "testing" @@ -249,10 +248,3 @@ func (s *UserSuite) Test_UpdatePassword_EmptyPassword() { func externalOf(user *model.User) *model.UserExternal { return &model.UserExternal{Name: user.Name, Admin: user.Admin, ID: user.ID} } - -func (s *UserSuite) expectJSON(json string) { - assert.Equal(s.T(), 200, s.recorder.Code) - bytes, _ := ioutil.ReadAll(s.recorder.Body) - - assert.JSONEq(s.T(), json, string(bytes)) -}