Test: Add test for api/photo_thumbnail
This commit is contained in:
parent
8ddc758504
commit
000735188c
1 changed files with 7 additions and 0 deletions
|
@ -20,6 +20,13 @@ func TestGetThumbnail(t *testing.T) {
|
|||
GetThumbnail(router, ctx)
|
||||
result := PerformRequest(app, "GET", "/api/v1/thumbnails/1/tile_500")
|
||||
|
||||
assert.Equal(t, http.StatusNotFound, result.Code)
|
||||
})
|
||||
t.Run("could not find original", func(t *testing.T) {
|
||||
app, router, ctx := NewApiTest()
|
||||
GetThumbnail(router, ctx)
|
||||
result := PerformRequest(app, "GET", "/api/v1/thumbnails/123xxx/tile_500")
|
||||
|
||||
assert.Equal(t, http.StatusNotFound, result.Code)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue