fixed router unit tests

This commit is contained in:
Kulbhushan Kaushik 2023-01-17 11:16:14 -05:00
parent dab5173d84
commit 87bd5205fe

View file

@ -15,13 +15,13 @@ describe("Router", () => {
it("Should push next view when navigating locally", () => {
let scenario = navigationScenarios.CLICKED_FORWARD;
let scenario = navigationScenarios.WELCOME_PAGE;
let currentRoute = { query: { issPage: issPageValues.WELCOME_PAGE }};
router.push = jest.fn();
router.navigate(scenario, currentRoute);
expect(router.push.mock.calls[0][0].query.issPage).toBe(issPageValues.VEHICLE_YEAR);
expect(router.push.mock.calls[0][0].query.issPage).toBe(issPageValues.POLICY_HOLDER_DETAILS);
});