mirror of
https://github.com/iptv-org/iptv
synced 2026-10-30 06:44:16 -04:00
Update tests
This commit is contained in:
1 parent
8225e59a0a
commit
2d44218887
3 files changed
+50
-2
No files matched your search
@@ -7,11 +7,13 @@ beforeEach(() => {
|
||||
})
|
||||
|
||||
it('can generate playlists and logs', () => {
|
||||
execSync(
|
||||
const stdout = execSync(
|
||||
'STREAMS_DIR=tests/__data__/input/playlist_generate DATA_DIR=tests/__data__/input/data PUBLIC_DIR=tests/__data__/output/.gh-pages LOGS_DIR=tests/__data__/output/logs npm run playlist:generate',
|
||||
{ encoding: 'utf8' }
|
||||
)
|
||||
|
||||
if (process.env.DEBUG === 'true') console.log(stdout)
|
||||
|
||||
const playlists = glob
|
||||
.sync('tests/__data__/expected/playlist_generate/.gh-pages/**/*.m3u')
|
||||
.map((file: string) => file.replace('tests/__data__/expected/playlist_generate/', ''))
|
||||
|
||||
Reference in new issue
Block a user