mirror of
https://github.com/iptv-org/epg
synced 2025-12-18 03:16:53 -05:00
Update tvtv.us.test.js
This commit is contained in:
@@ -10,8 +10,8 @@ dayjs.extend(utc)
|
|||||||
|
|
||||||
jest.mock('axios')
|
jest.mock('axios')
|
||||||
|
|
||||||
axios.get.mockImplementation(url => {
|
axios.mockImplementation(req => {
|
||||||
if (url === 'https://tvtv.us/api/v1/programs/EP009311820269') {
|
if (req.url === 'https://tvtv.us/api/v1/programs/EP009311820269') {
|
||||||
return Promise.resolve({
|
return Promise.resolve({
|
||||||
data: JSON.parse(fs.readFileSync(path.resolve(__dirname, '__data__/program_1.json')))
|
data: JSON.parse(fs.readFileSync(path.resolve(__dirname, '__data__/program_1.json')))
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user