mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 18:37:01 -05:00
Update update.test.js
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user