From a6ff23944d3b0ff5a32240ed83348ac08b28632a Mon Sep 17 00:00:00 2001 From: Jannis Mattheis Date: Sat, 24 Mar 2018 20:01:03 +0100 Subject: [PATCH] Remove unused method --- api/user_test.go | 8 -------- 1 file changed, 8 deletions(-) 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)) -}