Update tests

This commit is contained in:
freearhey 2025-04-23 05:42:52 +03:00
parent ddedd67b80
commit 23342a24bb
3 changed files with 18 additions and 5 deletions

View file

@ -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)
}