mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-17 04:20:03 -04:00
Update tests
This commit is contained in:
parent
ddedd67b80
commit
23342a24bb
3 changed files with 18 additions and 5 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue