mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-18 07:30:29 +00:00
test(model): clarify where NewFolder paths come from
Signed-off-by: junkerderprovinz <jdp@braethoria.com>
This commit is contained in:
parent
5d71b6e0d5
commit
1d15beb2eb
@ -77,7 +77,7 @@ var _ = Describe("Folder", func() {
|
||||
|
||||
Describe("NewFolder", func() {
|
||||
It("should create a new SubFolder with the correct attributes", func() {
|
||||
// The scanner walks an fs.FS, so folder paths always use forward slashes
|
||||
// The scanner passes fs.FS paths here, which use forward slashes on every OS.
|
||||
folderPath := "rock/metal"
|
||||
folder := model.NewFolder(lib, folderPath)
|
||||
|
||||
|
||||
@ -484,7 +484,7 @@ var _ = Describe("MediaFiles", func() {
|
||||
false,
|
||||
"#EXTM3U\n#PLAYLIST:Multi Track\n#EXTINF:120,Artist A - Song One\na/song1.mp3\n#EXTINF:241,Artist B - Song Two\nb/song2.mp3\n#EXTINF:90,Artist with Ümläuts - Song with \"quotes\" & ampersands\nspecial/file.mp3\n",
|
||||
),
|
||||
// AbsolutePath joins with the OS separator
|
||||
// AbsolutePath joins with the OS separator.
|
||||
Entry("absolute paths",
|
||||
true,
|
||||
filepath.FromSlash("#EXTM3U\n#PLAYLIST:Multi Track\n#EXTINF:120,Artist A - Song One\n/music/a/song1.mp3\n#EXTINF:241,Artist B - Song Two\n/music/b/song2.mp3\n#EXTINF:90,Artist with Ümläuts - Song with \"quotes\" & ampersands\n/música/special/file.mp3\n"),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user