Remove unused method
This commit is contained in:
parent
0f2e7cf5e2
commit
a6ff23944d
|
|
@ -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))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue