Update tvguide.com.test.js

This commit is contained in:
freearhey 2023-06-19 09:58:18 +03:00
parent 160565a076
commit 9a0f2d3dde

View file

@ -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')))