Skip to content

Commit

Permalink
Add check to ensure mockClient.post is called
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Jun 10, 2024
1 parent da4b14d commit f6d7d1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/auth/types/openid/openid_auth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ describe('test OpenId authHeaderValue', () => {
});

expect(await openIdAuthentication.isValidCookie(testCookie, {})).toBe(true);
expect(mockClient.post).toBeCalledTimes(1);
global.Date.now = realDateNow;
});

Expand Down

0 comments on commit f6d7d1f

Please sign in to comment.