fixed router unit tests
This commit is contained in:
parent
dab5173d84
commit
87bd5205fe
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue