Update unifi.com.my.test.js

Added `--timeout=30000` to test command
This commit is contained in:
Aleksandr Statciuk 2023-01-12 00:30:58 +03:00
parent d46f4a485b
commit bdcfd656c7

View file

@ -1,4 +1,4 @@
// npx epg-grabber --config=sites/unifi.com.my/unifi.com.my.config.js --channels=sites/unifi.com.my/unifi.com.my.channels.xml --output=guide.xml --days=2 // npx epg-grabber --config=sites/unifi.com.my/unifi.com.my.config.js --channels=sites/unifi.com.my/unifi.com.my.channels.xml --output=guide.xml --days=2 --timeout=30000
const { parser, url, request } = require('./unifi.com.my.config.js') const { parser, url, request } = require('./unifi.com.my.config.js')
const dayjs = require('dayjs') const dayjs = require('dayjs')
@ -43,10 +43,10 @@ it('can parse response', () => {
stop: '2023-01-08T21:15:00.000Z' stop: '2023-01-08T21:15:00.000Z'
} }
]) ])
}) })
it('can handle empty guide', () => { it('can handle empty guide', () => {
const content = `[{"id":"51882833","name":"AXN","logo":"https://playtv.unifi.com.my:7047/CPS/images/universal/film/logo/202109/20210927/2021092701574706798y.png","items":[]}]` const content = `[{"id":"51882833","name":"AXN","logo":"https://playtv.unifi.com.my:7047/CPS/images/universal/film/logo/202109/20210927/2021092701574706798y.png","items":[]}]`
const result = parser({ content, channel }) const result = parser({ content, channel })
expect(result).toMatchObject([]) expect(result).toMatchObject([])
}) })