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