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';
44
55const { ipcRenderer } = require ( 'electron' ) ;
66
7- import type { AxiosResponse } from 'axios' ;
87import { shell } from 'electron' ;
98import { mockAccounts , mockSettings } from '../__mocks__/mock-state' ;
109import { AppContext } from '../context/App' ;
11- import * as apiRequests from '../utils/api/request' ;
12- import Constants from '../utils/constants' ;
1310import { SettingsRoute } from './Settings' ;
1411
1512const mockNavigate = jest . fn ( ) ;
1613jest . 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
2618describe ( 'routes/Settings.tsx' , ( ) => {
2719 const updateSetting = jest . fn ( ) ;
You can’t perform that action at this time.
0 commit comments