mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update tvguide.com.test.js
This commit is contained in:
parent
160565a076
commit
9a0f2d3dde
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ const channel = {
|
|||
|
||||
it('can generate valid url', () => {
|
||||
expect(url({ date, channel })).toBe(
|
||||
'https://cmg-prod.apigee.net/v1/xapi/tvschedules/tvguide/9100001138/web?start=1667088000&duration=1440&channelSourceIds=9200018514'
|
||||
'https://fandom-prod.apigee.net/v1/xapi/tvschedules/tvguide/9100001138/web?start=1667088000&duration=1440&channelSourceIds=9200018514'
|
||||
)
|
||||
})
|
||||
|
||||
|
@ -30,7 +30,7 @@ it('can parse response', async () => {
|
|||
axios.get.mockImplementation(url => {
|
||||
if (
|
||||
url ===
|
||||
'https://cmg-prod.apigee.net/v1/xapi/tvschedules/tvguide/programdetails/6060613824/web'
|
||||
'https://fandom-prod.apigee.net/v1/xapi/tvschedules/tvguide/programdetails/6060613824/web'
|
||||
) {
|
||||
return Promise.resolve({
|
||||
data: JSON.parse(fs.readFileSync(path.resolve(__dirname, '__data__/program.json')))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue