mirror of
https://github.com/iptv-org/iptv
synced 2025-12-17 10:57:18 -05:00
Update tests
This commit is contained in:
@@ -7,13 +7,13 @@ type ExecError = {
|
||||
|
||||
it('shows an error if the playlist contains a broken link', () => {
|
||||
try {
|
||||
execSync('ROOT_DIR=tests/__data__/input npm run playlist:test streams_test/ag.m3u', {
|
||||
execSync('ROOT_DIR=tests/__data__/input npm run playlist:test playlist_test/ag.m3u', {
|
||||
encoding: 'utf8'
|
||||
})
|
||||
process.exit(1)
|
||||
} catch (error) {
|
||||
expect((error as ExecError).status).toBe(1)
|
||||
expect((error as ExecError).stdout).toContain('streams_test/ag.m3u')
|
||||
expect((error as ExecError).stdout).toContain('playlist_test/ag.m3u')
|
||||
expect((error as ExecError).stdout).toContain('2 problems (1 errors, 1 warnings)')
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user