From 2ef6b1623ebf401528ab81c3ba3a6c70bd7696ea Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Sun, 9 Jul 2023 16:30:50 +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 c86c3cc..19b92c6 100644 --- a/tests/bin.test.js +++ b/tests/bin.test.js @@ -105,3 +105,14 @@ it('removes duplicates of the program', () => { 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) +})