From 6192cc6fd721d8cb7c021d011bd6d4606902aede Mon Sep 17 00:00:00 2001 From: Lordfirespeed <28568841+Lordfirespeed@users.noreply.github.com> Date: Sat, 24 Aug 2024 14:57:18 +0100 Subject: [PATCH] fix(test): pass `mockResponse` to `validateRequest` --- tests/utils/mock.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils/mock.ts b/tests/utils/mock.ts index eeb7893..65cbce2 100644 --- a/tests/utils/mock.ts +++ b/tests/utils/mock.ts @@ -79,7 +79,7 @@ export const generateMocksWithToken = async ({ mockRequest.headers[HEADER_KEY] = csrfToken // Once a token has been generated, the request should be setup as valid - assert.isTrue(await validateRequest(mockRequest)) + assert.isTrue(await validateRequest(mockRequest, mockResponse)) return { csrfToken, cookieValue,