aboutsummaryrefslogtreecommitdiff
path: root/internal/scanner
diff options
context:
space:
mode:
authorRanXom <saiyedshizain@gmail.com>2026-07-13 17:31:06 +0530
committerRanXom <saiyedshizain@gmail.com>2026-07-13 17:31:06 +0530
commit359102295f4f852e8d9850fa3291c0a52e0edc94 (patch)
treec19774758395af465d8235befae9715aaccc91ef /internal/scanner
parent1692950fabf37cf73a89d26c7e25d701f0872280 (diff)
downloadgalleryd-359102295f4f852e8d9850fa3291c0a52e0edc94.tar.xz
galleryd-359102295f4f852e8d9850fa3291c0a52e0edc94.zip
test(scanner): rename fixtures in scanner testchore/test-fixtures
Diffstat (limited to 'internal/scanner')
-rw-r--r--internal/scanner/scanner_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/scanner/scanner_test.go b/internal/scanner/scanner_test.go
index 866b50a..1fe6d3e 100644
--- a/internal/scanner/scanner_test.go
+++ b/internal/scanner/scanner_test.go
@@ -20,9 +20,9 @@ func TestScanner(t *testing.T) {
t.Run("find supported images", func(t *testing.T) {
expected := map[string]struct{}{
- "cat.jpg": {},
- "dog.png": {},
- "beach.webp": {},
+ "image.jpg": {},
+ "image.png": {},
+ "image.webp": {},
}
for _, file := range files {
@@ -45,7 +45,7 @@ func TestScanner(t *testing.T) {
t.Run("skips hidden directories", func(t *testing.T) {
for _, file := range files {
- if filepath.Base(file.Path) == "nuclearlaunchcode.txt" {
+ if filepath.Base(file.Path) == ".hidden.jpg" {
t.Fatal("hidden file entered the scanner")
}
}