Skip to content

Commit 2e95e36

Browse files
authored
fix: cleanup migration test output (#1175)
1 parent 47206d6 commit 2e95e36

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utils/auth/migration.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import {
99
migrateAuthenticatedAccounts,
1010
} from './migration';
1111

12+
jest.spyOn(console, 'log').mockImplementation(() => null);
13+
1214
describe('utils/auth/migration.ts', () => {
1315
beforeEach(() => {
1416
// axios will default to using the XHR adapter which can't be intercepted
@@ -34,6 +36,7 @@ describe('utils/auth/migration.ts', () => {
3436
await migrateAuthenticatedAccounts();
3537

3638
expect(localStorage.setItem).toHaveBeenCalledTimes(1);
39+
expect(console.log).toHaveBeenCalledTimes(2);
3740
});
3841
});
3942

0 commit comments

Comments
 (0)