mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update edit.test.ts
This commit is contained in:
parent
e842ada752
commit
bc311ae5b9
1 changed files with 2 additions and 1 deletions
|
@ -27,8 +27,9 @@ describe('channels:edit', () => {
|
||||||
try {
|
try {
|
||||||
const stdout = execSync(cmd, { encoding: 'utf8' })
|
const stdout = execSync(cmd, { encoding: 'utf8' })
|
||||||
if (process.env.DEBUG === 'true') console.log(cmd, stdout)
|
if (process.env.DEBUG === 'true') console.log(cmd, stdout)
|
||||||
checkStdout(stdout) // NOTE: for Windows only
|
checkStdout(stdout)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
// NOTE: for Windows only
|
||||||
if (process.env.DEBUG === 'true') console.log(cmd, error)
|
if (process.env.DEBUG === 'true') console.log(cmd, error)
|
||||||
checkStdout((error as ExecError).stdout)
|
checkStdout((error as ExecError).stdout)
|
||||||
expect(content('tests/__data__/output/channels.xml')).toEqual(
|
expect(content('tests/__data__/output/channels.xml')).toEqual(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue