From b8285b1970fbf492c43862bab272105dbcee4a15 Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Fri, 31 Jan 2025 20:46:49 +0300 Subject: [PATCH] Update tvtv.us.test.js --- sites/tvtv.us/tvtv.us.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sites/tvtv.us/tvtv.us.test.js b/sites/tvtv.us/tvtv.us.test.js index b01e43ba..a55755a9 100644 --- a/sites/tvtv.us/tvtv.us.test.js +++ b/sites/tvtv.us/tvtv.us.test.js @@ -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'))) })