Skip to content

Commit

Permalink
fix(EMS-3373): added cookie parser
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi-markan committed May 16, 2024
1 parent fe2a6ea commit 304e501
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ui/server/test-mocks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { mockInsuranceFeedback } from './mock-feedback';
import mockContact from './mock-contact';
import { PRODUCT } from '../content-strings';
import { INTEGRITY } from '../constants';
import cookieParser from 'cookie-parser';

const { JS, GOVUK, FORM, COOKIES, GA, GA_TAG_MANAGER, MOJ, ACCESSIBILITY } = INTEGRITY;

Expand All @@ -35,6 +36,7 @@ const mockReq = () => {
origin: 'https://mock.com',
host: 'mock-host.com',
},
signedCookies: cookieParser(''),
hostname: 'mock.com',
method: 'GET',
originalUrl: 'mock?mockQueryParam',
Expand Down

0 comments on commit 304e501

Please sign in to comment.