Skip to content

Commit 69dbcfb

Browse files
added-ut1
1 parent ec4c3e9 commit 69dbcfb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/commands/scan_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2375,7 +2375,9 @@ func Test_isValidJSONOrXML(t *testing.T) {
23752375
inputPath string
23762376
output bool
23772377
}{
2378-
{"wrong file", "wrongfilepath", false},
2378+
{"wrong extension", "somefile.txt", false},
2379+
{"wrong json file", "wrongfilepath.json", false},
2380+
{"wrong xml file", "wrongfilepath.xml", false},
23792381
{"correct file", "data/package.json", true},
23802382
}
23812383

0 commit comments

Comments
 (0)