diff options
| author | Saiyed Shizain <saiyedshizain@gmail.com> | 2026-07-13 17:43:13 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-13 17:43:13 +0530 |
| commit | f41b0b92046e1bee512b3e4143ed9dc9a9ba9713 (patch) | |
| tree | c19774758395af465d8235befae9715aaccc91ef /internal/scanner/scanner_test.go | |
| parent | ae29fa5ee155bb4828ea6eb8b164a30f7ec9fae8 (diff) | |
| parent | 359102295f4f852e8d9850fa3291c0a52e0edc94 (diff) | |
| download | galleryd-f41b0b92046e1bee512b3e4143ed9dc9a9ba9713.tar.xz galleryd-f41b0b92046e1bee512b3e4143ed9dc9a9ba9713.zip | |
Merge pull request #7 from RanXom/chore/test-fixtures
Chore/test-fixtures: rename fixtures and replace with non empty images
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") } } |