test: update parseTargets test to handle folder names with spaces

Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
Deluan 2025-11-10 19:31:25 -05:00
parent f1dbd88024
commit 36a7040df3

View File

@ -26,9 +26,10 @@ var _ = Describe("parseTargets", func() {
})
It("handles targets with spaces around commas", func() {
targets, err := parseTargets("1:Music/Rock , 2:Jazz , 3:Classical")
targets, err := parseTargets("1:Music/Rock And Roll, 2:Jazz , 3:Classical")
Expect(err).ToNot(HaveOccurred())
Expect(targets).To(HaveLen(3))
Expect(targets[0].FolderPath).To(Equal("Music/Rock And Roll"))
})
It("handles paths with colons after the first colon", func() {