Update foxsports.com.au.test.js

This commit is contained in:
Aleksandr Statciuk 2022-12-16 01:43:12 +03:00
parent 3fc8c8e41d
commit 9a94a3ec4d

View file

@ -1,3 +1,4 @@
// npx epg-grabber --config=sites/foxsports.com.au/foxsports.com.au.config.js --channels=sites/foxsports.com.au/foxsports.com.au_au.channels.xml --output=guide.xml --days=2
const { parser, url } = require('./foxsports.com.au.config.js')
const dayjs = require('dayjs')
@ -37,8 +38,11 @@ it('can parse response', () => {
})
it('can handle empty guide', () => {
const result = parser({
const result = parser(
{
content: `{"channel-programme":[]}`
}, channel)
},
channel
)
expect(result).toMatchObject([])
})