Backend: Fix test
This commit is contained in:
parent
9fc0265d9a
commit
47e4abe9a4
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue