From f4c7424bc3549513014202d891149d251d527a39 Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Fri, 27 Mar 2026 17:39:00 +0100 Subject: [PATCH] test(frontend): adapt for remove delegation --- .../tests/lib/providers/auth-client.provider.test.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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); }); }); });