Update bin.test.js

This commit is contained in:
freearhey 2023-07-09 16:49:45 +03:00
parent f5e9a2815d
commit 30af691f73
1 changed files with 11 additions and 0 deletions

View File

@ -116,3 +116,14 @@ it('can load multiple "channels.xml" files at once', () => {
expect(stdoutResultTester(stdout)).toBe(true) expect(stdoutResultTester(stdout)).toBe(true)
}) })
it('can parse list of "channels.xml" from array', () => {
const stdout = execSync(
`node ${pwd}/bin/epg-grabber.js --config=tests/__data__/input/example_channels.config.js --timeout=1`,
{
encoding: 'utf8'
}
)
expect(stdoutResultTester(stdout)).toBe(true)
})