Skip to content

Commit

Permalink
Improve test for licence to start page
Browse files Browse the repository at this point in the history
  • Loading branch information
jaucourt committed Nov 15, 2024
1 parent 77f0833 commit b6fc2fe
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ import { startDateValidator } from '../../../../schema/validators/validators.js'
jest.mock('../../../../routes/next-page.js')
jest.mock('../../../../routes/page-route.js')
jest.mock('../../../../schema/validators/validators.js')
jest.mock('../../../../uri.js', () => ({
...jest.requireActual('../../../../uri.js'),
LICENCE_TO_START: {
page: Symbol('licence-to-start-page'),
uri: Symbol('/licence-to-start')
}
}))

describe('licence-to-start > route', () => {
const getMockRequest = (isLicenceForYou = true) => ({
Expand Down

0 comments on commit b6fc2fe

Please sign in to comment.