mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 08:30:06 -04:00
Update tvtv.us.test.js
This commit is contained in:
parent
c7fa5cd062
commit
b8285b1970
1 changed files with 2 additions and 2 deletions
|
@ -10,8 +10,8 @@ dayjs.extend(utc)
|
|||
|
||||
jest.mock('axios')
|
||||
|
||||
axios.get.mockImplementation(url => {
|
||||
if (url === 'https://tvtv.us/api/v1/programs/EP009311820269') {
|
||||
axios.mockImplementation(req => {
|
||||
if (req.url === 'https://tvtv.us/api/v1/programs/EP009311820269') {
|
||||
return Promise.resolve({
|
||||
data: JSON.parse(fs.readFileSync(path.resolve(__dirname, '__data__/program_1.json')))
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue