Update update.test.js

This commit is contained in:
Aleksandr Statciuk 2023-01-10 12:41:00 +03:00
parent f97f1b55c9
commit c8dafe2024

View file

@ -26,22 +26,25 @@ starting...
loading data/channels.json... loading data/channels.json...
loading database/programs.db... loading database/programs.db...
found 6 programs found 6 programs
creating tests/__data__/output/guides/allente.se.xml... creating tests/__data__/output/guides/da/allente.se.xml...
creating tests/__data__/output/guides/allente.se.xml.gz... creating tests/__data__/output/guides/da/allente.se.xml.gz...
creating tests/__data__/output/guides/allente.se.json... creating tests/__data__/output/guides/da/allente.se.json...
creating tests/__data__/output/guides/virginmedia.com.xml... creating tests/__data__/output/guides/en/virginmedia.com.xml...
creating tests/__data__/output/guides/virginmedia.com.xml.gz... creating tests/__data__/output/guides/en/virginmedia.com.xml.gz...
creating tests/__data__/output/guides/virginmedia.com.json... creating tests/__data__/output/guides/en/virginmedia.com.json...
creating tests/__data__/output/guides/sky.com.xml... creating tests/__data__/output/guides/fr/sky.com.xml...
creating tests/__data__/output/guides/sky.com.xml.gz... creating tests/__data__/output/guides/fr/sky.com.xml.gz...
creating tests/__data__/output/guides/sky.com.json... 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... creating tests/__data__/output/logs/guides/update.log...
finished finished
` `
) )
const uncompressed = glob const uncompressed = glob
.sync('tests/__data__/expected/guides/*.xml') .sync('tests/__data__/expected/guides/**/*.xml')
.map(f => f.replace('tests/__data__/expected/', '')) .map(f => f.replace('tests/__data__/expected/', ''))
uncompressed.forEach(filepath => { uncompressed.forEach(filepath => {
@ -49,7 +52,7 @@ finished
}) })
const compressed = glob const compressed = glob
.sync('tests/__data__/expected/guides/*.xml.gz') .sync('tests/__data__/expected/guides/**/*.xml.gz')
.map(f => f.replace('tests/__data__/expected/', '')) .map(f => f.replace('tests/__data__/expected/', ''))
compressed.forEach(filepath => { compressed.forEach(filepath => {
@ -57,7 +60,7 @@ finished
}) })
const json = glob const json = glob
.sync('tests/__data__/expected/guides/*.json') .sync('tests/__data__/expected/guides/**/*.json')
.map(f => f.replace('tests/__data__/expected/', '')) .map(f => f.replace('tests/__data__/expected/', ''))
json.forEach(filepath => { json.forEach(filepath => {