mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 10:26:41 -05:00
Update tests
This commit is contained in:
@@ -8,13 +8,9 @@ type ExecError = {
|
||||
describe('channels:lint', () => {
|
||||
it('will show a message if the file contains a syntax error', () => {
|
||||
try {
|
||||
const stdout = execSync(
|
||||
'npm run channels:lint -- --channels=tests/__data__/input/channels-lint/channels-lint.channels.xml',
|
||||
{
|
||||
encoding: 'utf8'
|
||||
}
|
||||
)
|
||||
console.log(stdout)
|
||||
const cmd =
|
||||
'npm run channels:lint -- --channels=tests/__data__/input/channels-lint/channels-lint.channels.xml'
|
||||
execSync(cmd, { encoding: 'utf8' })
|
||||
process.exit(1)
|
||||
} catch (error) {
|
||||
expect((error as ExecError).status).toBe(1)
|
||||
|
||||
Reference in New Issue
Block a user