diff --git a/src/frontend/tests/lib/providers/auth-client.provider.test.ts b/src/frontend/tests/lib/providers/auth-client.provider.test.ts index d31838692b..5ae302c282 100644 --- a/src/frontend/tests/lib/providers/auth-client.provider.test.ts +++ b/src/frontend/tests/lib/providers/auth-client.provider.test.ts @@ -86,7 +86,9 @@ describe('auth-client.provider', () => { expect.any(Object) ); - expect(authClientStorage.remove).toHaveBeenCalledExactlyOnceWith(KEY_STORAGE_KEY); + expect(authClientStorage.remove).toHaveBeenCalledTimes(2); + expect(authClientStorage.remove).toHaveBeenCalledWith(KEY_STORAGE_KEY); + expect(authClientStorage.remove).toHaveBeenCalledWith(KEY_STORAGE_DELEGATION); }); it('should create a new key when called a second time', async () => { @@ -109,7 +111,9 @@ describe('auth-client.provider', () => { expect.any(Object) ); - expect(authClientStorage.remove).toHaveBeenCalledExactlyOnceWith(KEY_STORAGE_KEY); + expect(authClientStorage.remove).toHaveBeenCalledTimes(2); + expect(authClientStorage.remove).toHaveBeenCalledWith(KEY_STORAGE_KEY); + expect(authClientStorage.remove).toHaveBeenCalledWith(KEY_STORAGE_DELEGATION); }); }); });