Expected status for like and dislike is accepted (202) #58

This commit is contained in:
Michael Mayer 2018-11-17 08:37:31 +01:00
parent cdf9d9293d
commit bb36226b59

View file

@ -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)
}