From 99c8a6771d3623755e8383d2e37cd43157022e9f Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Fri, 24 May 2024 02:39:25 -1000 Subject: [PATCH] test(settings): remove unused mock (#1140) --- src/routes/Settings.test.tsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/routes/Settings.test.tsx b/src/routes/Settings.test.tsx index 64ee49c9e..b670f4297 100644 --- a/src/routes/Settings.test.tsx +++ b/src/routes/Settings.test.tsx @@ -4,12 +4,9 @@ import { MemoryRouter } from 'react-router-dom'; const { ipcRenderer } = require('electron'); -import type { AxiosResponse } from 'axios'; import { shell } from 'electron'; import { mockAccounts, mockSettings } from '../__mocks__/mock-state'; import { AppContext } from '../context/App'; -import * as apiRequests from '../utils/api/request'; -import Constants from '../utils/constants'; import { SettingsRoute } from './Settings'; const mockNavigate = jest.fn(); @@ -17,11 +14,6 @@ jest.mock('react-router-dom', () => ({ ...jest.requireActual('react-router-dom'), useNavigate: () => mockNavigate, })); -jest.spyOn(apiRequests, 'apiRequestAuth').mockResolvedValue({ - headers: { - 'x-oauth-scopes': Constants.AUTH_SCOPE.join(', '), - }, -} as unknown as AxiosResponse); describe('routes/Settings.tsx', () => { const updateSetting = jest.fn();