diff options
| author | Saiyed Shizain <saiyedshizain@gmail.com> | 2026-09-01 23:22:57 +0530 |
|---|---|---|
| committer | Saiyed Shizain <saiyedshizain@gmail.com> | 2026-09-01 23:22:57 +0530 |
| commit | e7cf1fc44ded2be04f3ff144c29bfc73bed809c8 (patch) | |
| tree | 0535b1eae4cf0fa21d24e2ed3e7ab4875c0e70f6 /internal/gallery/query_photos_test.go | |
| parent | 5a51d4a74b5a656a1b11c4636956abe23c975d17 (diff) | |
| download | galleryd-e7cf1fc44ded2be04f3ff144c29bfc73bed809c8.tar.xz galleryd-e7cf1fc44ded2be04f3ff144c29bfc73bed809c8.zip | |
This reverts commit 5a51d4a74b5a656a1b11c4636956abe23c975d17.
Diffstat (limited to 'internal/gallery/query_photos_test.go')
| -rw-r--r-- | internal/gallery/query_photos_test.go | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/internal/gallery/query_photos_test.go b/internal/gallery/query_photos_test.go index e5ef560..f38c237 100644 --- a/internal/gallery/query_photos_test.go +++ b/internal/gallery/query_photos_test.go @@ -409,53 +409,3 @@ func TestQueryPhotosFilterSearchSortThenPaginate(t *testing.T) { assertIDs(t, got, "5") } - -func TestQueryPhotosIgnoresDateRangesForNow(t *testing.T) { - photos := []Photo{ - { - ID: "old", - Metadata: metadata.Metadata{ - DateTaken: time.Date( - 2024, - 1, - 1, - 0, - 0, - 0, - 0, - time.UTC, - ), - }, - }, - { - ID: "new", - Metadata: metadata.Metadata{ - DateTaken: time.Date( - 2025, - 1, - 1, - 0, - 0, - 0, - 0, - time.UTC, - ), - }, - }, - } - - got := QueryPhotos(photos, Query{ - From: time.Date( - 2025, - 1, - 1, - 0, - 0, - 0, - 0, - time.UTC, - ), - }) - - assertIDs(t, got, "old", "new") -} |