Tests: Adapt tests for internal/api to fixture updates
This commit is contained in:
parent
c241faf248
commit
7c16183998
|
@ -17,7 +17,7 @@ func TestGetFile(t *testing.T) {
|
||||||
assert.Equal(t, http.StatusOK, r.Code)
|
assert.Equal(t, http.StatusOK, r.Code)
|
||||||
|
|
||||||
val := gjson.Get(r.Body.String(), "Name")
|
val := gjson.Get(r.Body.String(), "Name")
|
||||||
assert.Equal(t, "exampleFileName.jpg", val.String())
|
assert.Equal(t, "2020/07/exampleFileName.jpg", val.String())
|
||||||
})
|
})
|
||||||
t.Run("search for not existing file", func(t *testing.T) {
|
t.Run("search for not existing file", func(t *testing.T) {
|
||||||
app, router, _ := NewApiTest()
|
app, router, _ := NewApiTest()
|
||||||
|
|
Loading…
Reference in a new issue