mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update bein.com.test.js
This commit is contained in:
parent
b5766abe08
commit
f09e1576f3
1 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue