Update tests

This commit is contained in:
freearhey committed 2025-04-23 05:42:52 +03:00
1 parent 0deb0c8e01
commit 844771bfb1
3 files changed
+18 -5

No files matched your search

+6 -1
View File
@@ -23,7 +23,12 @@ describe('playlist:generate', () => {
const playlists = glob
.sync('tests/__data__/expected/playlist_generate/.gh-pages/**/*.m3u')
.map((file: string) => file.replace('tests/__data__/expected/playlist_generate/', ''))
.map(filepath => {
const fileUrl = pathToFileURL(filepath).toString()
const pathToRemove = pathToFileURL('tests/__data__/expected/playlist_generate/').toString()
return fileUrl.replace(pathToRemove, '')
})
playlists.forEach((filepath: string) => {
expect(content(`tests/__data__/output/${filepath}`), filepath).toBe(