aboutsummaryrefslogtreecommitdiff
path: root/internal/gallery/query_photos_test.go
diff options
context:
space:
mode:
authorRanXom <saiyedshizain@gmail.com>2026-07-17 22:05:17 +0530
committerRanXom <saiyedshizain@gmail.com>2026-07-17 22:05:17 +0530
commit41ad7da084544b3b8eea5b009cc3cab652988b8d (patch)
tree723b9f74b7d04a0a969ffb8ec72db30ecb23f0ea /internal/gallery/query_photos_test.go
parente6a510a370d8048681c2c4e6f444dd2b0045041d (diff)
downloadgalleryd-41ad7da084544b3b8eea5b009cc3cab652988b8d.tar.xz
galleryd-41ad7da084544b3b8eea5b009cc3cab652988b8d.zip
feat(gallery): add sorting options to queries
Diffstat (limited to 'internal/gallery/query_photos_test.go')
-rw-r--r--internal/gallery/query_photos_test.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/internal/gallery/query_photos_test.go b/internal/gallery/query_photos_test.go
index 45e7149..d5a25d0 100644
--- a/internal/gallery/query_photos_test.go
+++ b/internal/gallery/query_photos_test.go
@@ -122,4 +122,21 @@ func TestQueryPhotos(t *testing.T) {
"5", "6", "7", "8", "9",
)
})
+
+ t.Run("ignores sorting for now", func(t *testing.T) {
+ got := QueryPhotos(
+ photos,
+ Query{
+ Sort: SortByPath,
+ Order: SortAsc,
+ },
+ )
+
+ assertIDs(
+ t,
+ got,
+ "0", "1", "2", "3", "4",
+ "5", "6", "7", "8", "9",
+ )
+ })
}