Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dauglyon committed Feb 26, 2024
1 parent ca938a3 commit 96ca232
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/auth/authSlice.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 96ca232

Please sign in to comment.