Test: Add test for api/label

This commit is contained in:
Theresa Gresch 2020-02-03 15:49:14 +01:00
parent b6967671c7
commit 4714b50a8f

View file

@ -48,7 +48,7 @@ func TestLikeLabel(t *testing.T) {
LikeLabel(router, ctx)
result := PerformRequest(app, "POST", "/api/v1/labels/12/like")
result := PerformRequest(app, "POST", "/api/v1/labels/14/like")
assert.Equal(t, http.StatusOK, result.Code)
})
@ -68,7 +68,7 @@ func TestDislikeLabel(t *testing.T) {
DislikeLabel(router, ctx)
result := PerformRequest(app, "DELETE", "/api/v1/labels/13/like")
result := PerformRequest(app, "DELETE", "/api/v1/labels/14/like")
assert.Equal(t, http.StatusOK, result.Code)
})
}