mirror of
https://github.com/iptv-org/epg
synced 2026-03-21 19:30:52 -04:00
test url parsing
This commit is contained in:
@@ -17,13 +17,11 @@ const content = fs.readFileSync(path.resolve(__dirname, '__data__/content.json')
|
||||
|
||||
it('can generate valid url', () => {
|
||||
const channel = { site_id: '878765717599035555' }
|
||||
const start = date.valueOf()
|
||||
const end = date.add(1, 'day').valueOf()
|
||||
|
||||
const generatedUrl = url({ channel, date })
|
||||
|
||||
expect(generatedUrl).toBe(
|
||||
`https://rlaxx.zeasn.tv/livetv/api/device/browser/v1/epg?channelIds=878765717599035555&startTime=${start}&endTime=${end}`
|
||||
'https://rlaxx.zeasn.tv/livetv/api/device/browser/v1/epg?channelIds=878765717599035555&startTime=1767830400000&endTime=1767916800000'
|
||||
)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user