Add a test

This commit is contained in:
jvoisin 2020-04-11 18:54:06 +02:00 committed by Deluan Quintão
parent 04eb421186
commit 2ab647efe1

View File

@ -228,4 +228,10 @@ Tracklist:
Expect(md.Year()).To(Equal(0))
})
})
It("creates a valid command line", func() {
args := createProbeCommand([]string{"/music library/one.mp3", "/music library/two.mp3"})
Expect(args).To(Equal([]string{"ffmpeg", "-i", "/music library/one.mp3", "-i", "/music library/two.mp3", "-f", "ffmetadata" }))
})
})