Update bin.test.js

This commit is contained in:
freearhey 2023-07-09 16:30:50 +03:00
parent f0052b3a17
commit 2ef6b1623e
1 changed files with 11 additions and 0 deletions

View File

@ -105,3 +105,14 @@ it('removes duplicates of the program', () => {
expect(output.programs).toEqual(expected.programs) expect(output.programs).toEqual(expected.programs)
}) })
it('can load multiple "channels.xml" files at once', () => {
const stdout = execSync(
`node ${pwd}/bin/epg-grabber.js --config=tests/__data__/input/example.config.js --channels=tests/__data__/input/example*.channels.xml --timeout=1`,
{
encoding: 'utf8'
}
)
expect(stdoutResultTester(stdout)).toBe(true)
})