From 30af691f73acf23d07bacb5051ed69f4481d6a3b Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Sun, 9 Jul 2023 16:49:45 +0300 Subject: [PATCH] Update bin.test.js --- tests/bin.test.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/bin.test.js b/tests/bin.test.js index 19b92c6..fb4c1fe 100644 --- a/tests/bin.test.js +++ b/tests/bin.test.js @@ -116,3 +116,14 @@ it('can load multiple "channels.xml" files at once', () => { 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) +})