From be54d195e4731fcdf63ec00426f9a26015aa3894 Mon Sep 17 00:00:00 2001 From: Afonso Jorge Ramos Date: Tue, 4 Jun 2024 01:43:42 +0100 Subject: [PATCH] fix: cleanup migration test output --- src/utils/auth/migration.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/auth/migration.test.ts b/src/utils/auth/migration.test.ts index 9a65101bd..12832ab4c 100644 --- a/src/utils/auth/migration.test.ts +++ b/src/utils/auth/migration.test.ts @@ -9,6 +9,8 @@ import { migrateAuthenticatedAccounts, } from './migration'; +jest.spyOn(console, 'log').mockImplementation(() => null); + describe('utils/auth/migration.ts', () => { beforeEach(() => { // axios will default to using the XHR adapter which can't be intercepted @@ -34,6 +36,7 @@ describe('utils/auth/migration.ts', () => { await migrateAuthenticatedAccounts(); expect(localStorage.setItem).toHaveBeenCalledTimes(1); + expect(console.log).toHaveBeenCalledTimes(2); }); });