diff options
| author | RanXom <saiyedshizain@gmail.com> | 2026-07-13 17:31:06 +0530 |
|---|---|---|
| committer | RanXom <saiyedshizain@gmail.com> | 2026-07-13 17:31:06 +0530 |
| commit | 359102295f4f852e8d9850fa3291c0a52e0edc94 (patch) | |
| tree | c19774758395af465d8235befae9715aaccc91ef /internal/scanner/scanner_test.go | |
| parent | 1692950fabf37cf73a89d26c7e25d701f0872280 (diff) | |
| download | galleryd-chore/test-fixtures.tar.xz galleryd-chore/test-fixtures.zip | |
test(scanner): rename fixtures in scanner testchore/test-fixtures
Diffstat (limited to 'internal/scanner/scanner_test.go')
| -rw-r--r-- | internal/scanner/scanner_test.go | 8 |
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") } } |