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,