mirror of
https://github.com/iptv-org/epg
synced 2025-12-18 03:16:53 -05:00
Update bein.com.test.js
This commit is contained in:
@@ -10,10 +10,10 @@ dayjs.extend(customParseFormat)
|
|||||||
dayjs.extend(utc)
|
dayjs.extend(utc)
|
||||||
|
|
||||||
const date = dayjs.utc('2022-05-08', 'YYYY-MM-DD').startOf('d')
|
const date = dayjs.utc('2022-05-08', 'YYYY-MM-DD').startOf('d')
|
||||||
const channel = { site_id: '1', xmltv_id: 'BeInSports.qa' }
|
const channel = { site_id: '0#1', xmltv_id: 'BeInSports.qa' }
|
||||||
|
|
||||||
it('can generate valid url', () => {
|
it('can generate valid url', () => {
|
||||||
const result = url({ date })
|
const result = url({ date, channel })
|
||||||
expect(result).toBe(
|
expect(result).toBe(
|
||||||
'https://www.bein.com/en/epg-ajax-template/?action=epg_fetch&category=sports&cdate=2022-05-08&language=EN&loadindex=0&mins=00&offset=0&postid=25356&serviceidentity=bein.net'
|
'https://www.bein.com/en/epg-ajax-template/?action=epg_fetch&category=sports&cdate=2022-05-08&language=EN&loadindex=0&mins=00&offset=0&postid=25356&serviceidentity=bein.net'
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user