diff --git a/internal/query/album_test.go b/internal/query/album_test.go index d079d88f5..c314acffe 100644 --- a/internal/query/album_test.go +++ b/internal/query/album_test.go @@ -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) + }) }