Skip to content

Commit 99c8a67

Browse files
authored
test(settings): remove unused mock (#1140)
1 parent 252bae4 commit 99c8a67

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/routes/Settings.test.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,16 @@ import { MemoryRouter } from 'react-router-dom';
44

55
const { ipcRenderer } = require('electron');
66

7-
import type { AxiosResponse } from 'axios';
87
import { shell } from 'electron';
98
import { mockAccounts, mockSettings } from '../__mocks__/mock-state';
109
import { AppContext } from '../context/App';
11-
import * as apiRequests from '../utils/api/request';
12-
import Constants from '../utils/constants';
1310
import { SettingsRoute } from './Settings';
1411

1512
const mockNavigate = jest.fn();
1613
jest.mock('react-router-dom', () => ({
1714
...jest.requireActual('react-router-dom'),
1815
useNavigate: () => mockNavigate,
1916
}));
20-
jest.spyOn(apiRequests, 'apiRequestAuth').mockResolvedValue({
21-
headers: {
22-
'x-oauth-scopes': Constants.AUTH_SCOPE.join(', '),
23-
},
24-
} as unknown as AxiosResponse);
2517

2618
describe('routes/Settings.tsx', () => {
2719
const updateSetting = jest.fn();

0 commit comments

Comments
 (0)