mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-06 11:56:39 +08:00
adding ampersands
This commit is contained in:
parent
0a1722e3b1
commit
6ed6180520
1 changed files with 2 additions and 2 deletions
|
@ -180,7 +180,7 @@ func TestDeleteUser(t *testing.T) {
|
|||
response, err := api(t, "", http.MethodDelete, "http://localhost:8081/users/admin", "secretkey")
|
||||
assert.Nil(t, err, err)
|
||||
var message models.ErrorResponse
|
||||
json.NewDecoder(response.Body).Decode(message)
|
||||
json.NewDecoder(response.Body).Decode(&message)
|
||||
assert.Equal(t, "W1R3: Error Verifying Auth Token.", message.Message)
|
||||
assert.Equal(t, http.StatusUnauthorized, response.StatusCode)
|
||||
})
|
||||
|
@ -188,7 +188,7 @@ func TestDeleteUser(t *testing.T) {
|
|||
response, err := api(t, "", http.MethodDelete, "http://localhost:8081/users/admin", token)
|
||||
assert.Nil(t, err, err)
|
||||
var body string
|
||||
json.NewDecoder(response.Body).Decode(body)
|
||||
json.NewDecoder(response.Body).Decode(&body)
|
||||
assert.Equal(t, "admin deleted.", body)
|
||||
assert.Equal(t, http.StatusOK, response.StatusCode)
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue