mirror of
https://github.com/iptv-org/iptv
synced 2025-12-16 10:26:48 -05:00
Update tests
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { execSync } from 'child_process'
|
||||
import path from 'node:path'
|
||||
import os from 'os'
|
||||
|
||||
type ExecError = {
|
||||
@@ -27,6 +28,10 @@ describe('playlist:test', () => {
|
||||
})
|
||||
|
||||
function checkStdout(stdout: string) {
|
||||
expect(stdout).toContain('playlist_test/ag.m3u')
|
||||
expect(stdout).toContain(slash('playlist_test/ag.m3u'))
|
||||
expect(stdout).toContain('2 problems (1 errors, 1 warnings)')
|
||||
}
|
||||
|
||||
function slash(filepath: string) {
|
||||
return filepath.split(path.sep).join(path.posix.sep)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user