From 96ca2325788ff8a9e5493b05c92741b1d4037921 Mon Sep 17 00:00:00 2001 From: David Lyon Date: Mon, 26 Feb 2024 12:36:42 -0800 Subject: [PATCH] fix tests --- src/features/auth/authSlice.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/auth/authSlice.test.tsx b/src/features/auth/authSlice.test.tsx index 280c1b18..cce776c3 100644 --- a/src/features/auth/authSlice.test.tsx +++ b/src/features/auth/authSlice.test.tsx @@ -172,7 +172,7 @@ describe('authSlice', () => { ); await waitFor(() => { expect(setTokenCookieMock).toHaveBeenCalledWith('some-token', { - domain: 'ci-europa.kbase.us', + domain: '.ci-europa.kbase.us', expires: new Date(auth.tokenInfo.expires), }); expect(consoleErrorMock).not.toHaveBeenCalled(); @@ -333,7 +333,7 @@ describe('authSlice', () => { ); await waitFor(() => { expect(setTokenCookieMock).toBeCalledWith('AAAAAA', { - domain: 'ci-europa.kbase.us', + domain: '.ci-europa.kbase.us', expires: new Date(10), }); expect(clearTokenCookieMock).not.toBeCalled();