From c8dafe20243ea807943cf3096170dad82372c844 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Tue, 10 Jan 2023 12:41:00 +0300 Subject: [PATCH] Update update.test.js --- tests/commands/guides/update.test.js | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/tests/commands/guides/update.test.js b/tests/commands/guides/update.test.js index cd46b4e2..0f335c01 100644 --- a/tests/commands/guides/update.test.js +++ b/tests/commands/guides/update.test.js @@ -26,22 +26,25 @@ starting... loading data/channels.json... loading database/programs.db... found 6 programs -creating tests/__data__/output/guides/allente.se.xml... -creating tests/__data__/output/guides/allente.se.xml.gz... -creating tests/__data__/output/guides/allente.se.json... -creating tests/__data__/output/guides/virginmedia.com.xml... -creating tests/__data__/output/guides/virginmedia.com.xml.gz... -creating tests/__data__/output/guides/virginmedia.com.json... -creating tests/__data__/output/guides/sky.com.xml... -creating tests/__data__/output/guides/sky.com.xml.gz... -creating tests/__data__/output/guides/sky.com.json... +creating tests/__data__/output/guides/da/allente.se.xml... +creating tests/__data__/output/guides/da/allente.se.xml.gz... +creating tests/__data__/output/guides/da/allente.se.json... +creating tests/__data__/output/guides/en/virginmedia.com.xml... +creating tests/__data__/output/guides/en/virginmedia.com.xml.gz... +creating tests/__data__/output/guides/en/virginmedia.com.json... +creating tests/__data__/output/guides/fr/sky.com.xml... +creating tests/__data__/output/guides/fr/sky.com.xml.gz... +creating tests/__data__/output/guides/fr/sky.com.json... +creating tests/__data__/output/guides/en/sky.com.xml... +creating tests/__data__/output/guides/en/sky.com.xml.gz... +creating tests/__data__/output/guides/en/sky.com.json... creating tests/__data__/output/logs/guides/update.log... finished ` ) const uncompressed = glob - .sync('tests/__data__/expected/guides/*.xml') + .sync('tests/__data__/expected/guides/**/*.xml') .map(f => f.replace('tests/__data__/expected/', '')) uncompressed.forEach(filepath => { @@ -49,7 +52,7 @@ finished }) const compressed = glob - .sync('tests/__data__/expected/guides/*.xml.gz') + .sync('tests/__data__/expected/guides/**/*.xml.gz') .map(f => f.replace('tests/__data__/expected/', '')) compressed.forEach(filepath => { @@ -57,7 +60,7 @@ finished }) const json = glob - .sync('tests/__data__/expected/guides/*.json') + .sync('tests/__data__/expected/guides/**/*.json') .map(f => f.replace('tests/__data__/expected/', '')) json.forEach(filepath => {