From 2ca59223f20029a3a4a351b22706b2b4d47ad6e3 Mon Sep 17 00:00:00 2001 From: Saiyed Shizain Date: Tue, 25 Aug 2026 19:34:09 +0530 Subject: feat(gallery): add search query to gallery queries --- internal/gallery/query_photos_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'internal/gallery/query_photos_test.go') 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") +} -- cgit v1.2.3