File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
import axios from 'axios' ;
2
- import log from 'electron-log' ;
3
2
import nock from 'nock' ;
3
+
4
+ import * as logger from '../../../shared/logger' ;
4
5
import { mockGitifyUser , mockToken } from '../../__mocks__/state-mocks' ;
5
6
import type { AuthState , Hostname } from '../../types' ;
6
7
import { Constants } from '../constants' ;
@@ -21,7 +22,7 @@ describe('renderer/utils/auth/migration.ts', () => {
21
22
22
23
describe ( 'migrateAuthenticatedAccounts' , ( ) => {
23
24
it ( 'migrate and save legacy accounts' , async ( ) => {
24
- const logInfoSpy = jest . spyOn ( log , 'info ' ) . mockImplementation ( ) ;
25
+ const logInfoSpy = jest . spyOn ( logger , 'logInfo ' ) . mockImplementation ( ) ;
25
26
jest . spyOn ( localStorage . __proto__ , 'getItem' ) . mockReturnValueOnce (
26
27
JSON . stringify ( {
27
28
auth : {
You can’t perform that action at this time.
0 commit comments