Test: Add test for invalid query to query/album.go
This commit is contained in:
parent
223e4a5df4
commit
9069d1312c
1 changed files with 6 additions and 0 deletions
|
@ -77,4 +77,10 @@ func TestRepo_Albums(t *testing.T) {
|
|||
assert.Nil(t, err)
|
||||
assert.Equal(t, 2, len(result))
|
||||
})
|
||||
t.Run("search with invalid query string", func(t *testing.T) {
|
||||
query := form.NewAlbumSearch("xxx:bla")
|
||||
result, err := search.Albums(query)
|
||||
assert.Error(t, err, "unknown filter")
|
||||
t.Log(result)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue