Skip to content

Commit

Permalink
fix(test): pass mockResponse to validateRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
Lordfirespeed committed Aug 24, 2024
1 parent fd5fef5 commit 6192cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/utils/mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6192cc6

Please sign in to comment.