From f6d7d1fb90fda32113ecafb34469ee5b242c88e1 Mon Sep 17 00:00:00 2001 From: Craig Perkins Date: Mon, 10 Jun 2024 14:19:01 -0400 Subject: [PATCH] Add check to ensure mockClient.post is called Signed-off-by: Craig Perkins --- server/auth/types/openid/openid_auth.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/auth/types/openid/openid_auth.test.ts b/server/auth/types/openid/openid_auth.test.ts index b4f86e002..58ed56547 100644 --- a/server/auth/types/openid/openid_auth.test.ts +++ b/server/auth/types/openid/openid_auth.test.ts @@ -298,6 +298,7 @@ describe('test OpenId authHeaderValue', () => { }); expect(await openIdAuthentication.isValidCookie(testCookie, {})).toBe(true); + expect(mockClient.post).toBeCalledTimes(1); global.Date.now = realDateNow; });