Backend: Fix test

This commit is contained in:
Theresa Gresch 2020-05-13 20:05:33 +02:00
parent 9fc0265d9a
commit 47e4abe9a4

View file

@ -8,10 +8,10 @@ import (
)
func TestGetPreview(t *testing.T) {
t.Run("successful request", func(t *testing.T) {
t.Run("not found", func(t *testing.T) {
app, router, ctx := NewApiTest()
GetPreview(router, ctx)
r := PerformRequest(app, "GET", "/api/v1/preview")
assert.Equal(t, http.StatusOK, r.Code)
assert.Equal(t, http.StatusNotFound, r.Code)
})
}