Skip to content

Commit

Permalink
Expect 422 for invalid json in KeysController#Create
Browse files Browse the repository at this point in the history
  • Loading branch information
j16r committed Jan 14, 2019
1 parent fc7a794 commit be6f616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/keys_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func TestKeysController_JSONBindingError(t *testing.T) {
resp, cleanup := client.Post("/v2/keys", bytes.NewBuffer([]byte(`{"current_password":12}`)))
defer cleanup()

cltest.AssertServerResponse(t, resp, 400)
cltest.AssertServerResponse(t, resp, 422)

ethMock.AllCalled()
}

0 comments on commit be6f616

Please sign in to comment.