File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -4,24 +4,16 @@ import { MemoryRouter } from 'react-router-dom';
4
4
5
5
const { ipcRenderer } = require ( 'electron' ) ;
6
6
7
- import type { AxiosResponse } from 'axios' ;
8
7
import { shell } from 'electron' ;
9
8
import { mockAccounts , mockSettings } from '../__mocks__/mock-state' ;
10
9
import { AppContext } from '../context/App' ;
11
- import * as apiRequests from '../utils/api/request' ;
12
- import Constants from '../utils/constants' ;
13
10
import { SettingsRoute } from './Settings' ;
14
11
15
12
const mockNavigate = jest . fn ( ) ;
16
13
jest . mock ( 'react-router-dom' , ( ) => ( {
17
14
...jest . requireActual ( 'react-router-dom' ) ,
18
15
useNavigate : ( ) => mockNavigate ,
19
16
} ) ) ;
20
- jest . spyOn ( apiRequests , 'apiRequestAuth' ) . mockResolvedValue ( {
21
- headers : {
22
- 'x-oauth-scopes' : Constants . AUTH_SCOPE . join ( ', ' ) ,
23
- } ,
24
- } as unknown as AxiosResponse ) ;
25
17
26
18
describe ( 'routes/Settings.tsx' , ( ) => {
27
19
const updateSetting = jest . fn ( ) ;
You can’t perform that action at this time.
0 commit comments