Expected status for like and dislike is accepted (202) #58
This commit is contained in:
parent
cdf9d9293d
commit
bb36226b59
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ func TestLikePhoto(t *testing.T) {
|
|||
|
||||
result := TestRequest(app, "POST", "/api/v1/photos/1/like")
|
||||
|
||||
assert.Equal(t, http.StatusOK, result.Code)
|
||||
assert.Equal(t, http.StatusAccepted, result.Code)
|
||||
}
|
||||
|
||||
func TestDislikePhoto(t *testing.T) {
|
||||
|
@ -34,5 +34,5 @@ func TestDislikePhoto(t *testing.T) {
|
|||
|
||||
result := TestRequest(app, "DELETE", "/api/v1/photos/1/like")
|
||||
|
||||
assert.Equal(t, http.StatusOK, result.Code)
|
||||
assert.Equal(t, http.StatusAccepted, result.Code)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue