diff options
| -rw-r--r-- | internal/gallery/query.go | 1 | ||||
| -rw-r--r-- | internal/gallery/query_photos_test.go | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/internal/gallery/query.go b/internal/gallery/query.go index b66f99a..346c25f 100644 --- a/internal/gallery/query.go +++ b/internal/gallery/query.go @@ -26,4 +26,5 @@ type Query struct { Order SortOrder Extension string + Search string } diff --git a/internal/gallery/query_photos_test.go b/internal/gallery/query_photos_test.go index b72b6ec..b60cfea 100644 --- a/internal/gallery/query_photos_test.go +++ b/internal/gallery/query_photos_test.go @@ -311,3 +311,13 @@ func TestQueryPhotosFilterThenSortThenPaginate(t *testing.T) { assertIDs(t, got, "3") } + +func TestQueryPhotosIgnoreSearchForNow(t *testing.T) { + photos := makePhotos(3) + + got := QueryPhotos(photos, Query{ + Search: "vacation", + }) + + assertIDs(t, got, "0", "1", "2") +} |