Skip to content

Commit 59e1066

Browse files
committed
refactor: logger test
Signed-off-by: Adam Setch <[email protected]>
1 parent f21720c commit 59e1066

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/renderer/utils/auth/migration.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import axios from 'axios';
2-
import log from 'electron-log';
32
import nock from 'nock';
3+
4+
import * as logger from '../../../shared/logger';
45
import { mockGitifyUser, mockToken } from '../../__mocks__/state-mocks';
56
import type { AuthState, Hostname } from '../../types';
67
import { 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: {

0 commit comments

Comments
 (0)