mirror of
https://github.com/iptv-org/epg
synced 2025-12-18 03:16:53 -05:00
Update update.test.js
This commit is contained in:
@@ -21,14 +21,6 @@ it('can generate /guides', () => {
|
|||||||
{ encoding: 'utf8' }
|
{ encoding: 'utf8' }
|
||||||
)
|
)
|
||||||
|
|
||||||
const guides = glob
|
|
||||||
.sync('tests/__data__/expected/guides/**/*.xml')
|
|
||||||
.map(f => f.replace('tests/__data__/expected/', ''))
|
|
||||||
|
|
||||||
guides.forEach(filepath => {
|
|
||||||
expect(content(`output/${filepath}`), filepath).toBe(content(`expected/${filepath}`))
|
|
||||||
})
|
|
||||||
|
|
||||||
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/', ''))
|
||||||
@@ -58,12 +50,12 @@ it('will terminate process if programs not found', () => {
|
|||||||
Generating guides/...
|
Generating guides/...
|
||||||
Loading \"database/programs.db\"...
|
Loading \"database/programs.db\"...
|
||||||
Loading queue...
|
Loading queue...
|
||||||
Creating \"tests/__data__/output/guides/us/directv.com.epg.xml\"...
|
Creating \"tests/__data__/output/guides/us/directv.com.xml.gz\"...
|
||||||
Creating \"tests/__data__/output/guides/fr/chaines-tv.orange.fr.epg.xml\"...
|
Creating \"tests/__data__/output/guides/fr/chaines-tv.orange.fr.xml.gz\"...
|
||||||
Creating \"tests/__data__/output/guides/bh/chaines-tv.orange.fr.epg.xml\"...
|
Creating \"tests/__data__/output/guides/bh/chaines-tv.orange.fr.xml.gz\"...
|
||||||
Creating \"tests/__data__/output/guides/ge/magticom.ge.epg.xml\"...
|
Creating \"tests/__data__/output/guides/ge/magticom.ge.xml.gz\"...
|
||||||
Creating \"tests/__data__/output/guides/ru/yandex.ru.epg.xml\"...
|
Creating \"tests/__data__/output/guides/ru/yandex.ru.xml.gz\"...
|
||||||
Creating \"tests/__data__/output/guides/zw/dstv.com.epg.xml\"...
|
Creating \"tests/__data__/output/guides/zw/dstv.com.xml.gz\"...
|
||||||
|
|
||||||
Error: No programs found
|
Error: No programs found
|
||||||
`)
|
`)
|
||||||
|
|||||||
Reference in New Issue
Block a user