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 11import axios from 'axios' ;
2- import log from 'electron-log' ;
32import nock from 'nock' ;
3+
4+ import * as logger from '../../../shared/logger' ;
45import { mockGitifyUser , mockToken } from '../../__mocks__/state-mocks' ;
56import type { AuthState , Hostname } from '../../types' ;
67import { Constants } from '../constants' ;
@@ -21,7 +22,7 @@ describe('renderer/utils/auth/migration.ts', () => {
2122
2223 describe ( 'migrateAuthenticatedAccounts' , ( ) => {
2324 it ( 'migrate and save legacy accounts' , async ( ) => {
24- const logInfoSpy = jest . spyOn ( log , 'info ' ) . mockImplementation ( ) ;
25+ const logInfoSpy = jest . spyOn ( logger , 'logInfo ' ) . mockImplementation ( ) ;
2526 jest . spyOn ( localStorage . __proto__ , 'getItem' ) . mockReturnValueOnce (
2627 JSON . stringify ( {
2728 auth : {
You can’t perform that action at this time.
0 commit comments