mirror of
https://github.com/navidrome/navidrome.git
synced 2025-12-23 23:18:05 -05:00
test(scanner): remove redundant fixture file
This commit is contained in:
@@ -10,7 +10,7 @@ var _ = Describe("TagScanner", func() {
|
||||
It("return all audio files from the folder", func() {
|
||||
files, err := loadAllAudioFiles("tests/fixtures")
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(files).To(HaveLen(12))
|
||||
Expect(files).To(HaveLen(11))
|
||||
Expect(files).To(HaveKey("tests/fixtures/test.aiff"))
|
||||
Expect(files).To(HaveKey("tests/fixtures/test.flac"))
|
||||
Expect(files).To(HaveKey("tests/fixtures/test.m4a"))
|
||||
@@ -20,7 +20,6 @@ var _ = Describe("TagScanner", func() {
|
||||
Expect(files).To(HaveKey("tests/fixtures/test.wav"))
|
||||
Expect(files).To(HaveKey("tests/fixtures/test.wma"))
|
||||
Expect(files).To(HaveKey("tests/fixtures/test.wv"))
|
||||
Expect(files).To(HaveKey("tests/fixtures/test_no_read_permission.ogg"))
|
||||
Expect(files).To(HaveKey("tests/fixtures/01 Invisible (RED) Edit Version.mp3"))
|
||||
Expect(files).To(HaveKey("tests/fixtures/01 Invisible (RED) Edit Version.m4a"))
|
||||
Expect(files).ToNot(HaveKey("tests/fixtures/._02 Invisible.mp3"))
|
||||
|
||||
@@ -34,7 +34,7 @@ var _ = Describe("walk_dir_tree", func() {
|
||||
Expect(collected[baseDir]).To(MatchFields(IgnoreExtras, Fields{
|
||||
"Images": BeEmpty(),
|
||||
"HasPlaylist": BeFalse(),
|
||||
"AudioFilesCount": BeNumerically("==", 13),
|
||||
"AudioFilesCount": BeNumerically("==", 12),
|
||||
}))
|
||||
Expect(collected[filepath.Join(baseDir, "artist", "an-album")]).To(MatchFields(IgnoreExtras, Fields{
|
||||
"Images": ConsistOf("cover.jpg", "front.png", "artist.png"),
|
||||
|
||||
BIN
tests/fixtures/test_no_read_permission.ogg
vendored
BIN
tests/fixtures/test_no_read_permission.ogg
vendored
Binary file not shown.
Reference in New Issue
Block a user