UNPKG

@defra-fish/gafl-webapp-service

Version:

The websales frontend for the GAFL service

22 lines (18 loc) 828 B
import pageRoute from '../../../../../routes/page-route.js' import { CANCEL_RP_LICENCE_NOT_FOUND } from '../../../../../uri.js' import '../route.js' jest.mock('../../../../../routes/page-route.js', () => jest.fn()) jest.mock('../../../../../uri.js', () => ({ CANCEL_RP_LICENCE_NOT_FOUND: { page: Symbol('licence-not-found page'), uri: Symbol('licence-not-found uri') } })) describe('CANCEL_RP_LICENCE_NOT_FOUND route', () => { it('passes CANCEL_RP_LICENCE_NOT_FOUND.page as the first argument to pageRoute', () => { expect(pageRoute).toHaveBeenCalledWith(CANCEL_RP_LICENCE_NOT_FOUND.page, expect.anything()) }) it('passes CANCEL_RP_LICENCE_NOT_FOUND.uri as the second argument to pageRoute', () => { expect(pageRoute).toHaveBeenCalledWith(expect.anything(), CANCEL_RP_LICENCE_NOT_FOUND.uri) }) })