aboutsummaryrefslogtreecommitdiff
path: root/internal/gallery/query_photos_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/gallery/query_photos_test.go')
-rw-r--r--internal/gallery/query_photos_test.go50
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")
-}