mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
Update unifi.com.my.test.js
Added `--timeout=30000` to test command
This commit is contained in:
parent
d46f4a485b
commit
bdcfd656c7
1 changed files with 27 additions and 27 deletions
|
@ -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([])
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue