diff --git a/src/layouts/schedule/schedule.spec.js b/src/layouts/schedule/schedule.spec.js index 654e0e4c9..2c4bafc33 100644 --- a/src/layouts/schedule/schedule.spec.js +++ b/src/layouts/schedule/schedule.spec.js @@ -51,7 +51,7 @@ describe("schedule.vue", () => { const { wrapper } = setupMocks({ customMountOptions: { router: { - navigateWithoutSaving: jest.fn(), + navigateWithSaving: jest.fn(), }, route: { schedule }, }, @@ -67,7 +67,7 @@ describe("schedule.vue", () => { await wrapper.vm.forwardButtonAction(); //Assert - expect(wrapper.vm.$router.navigateWithoutSaving).toHaveBeenCalled(); + expect(wrapper.vm.$router.navigateWithSaving).toHaveBeenCalled(); }); test("should pass arePagePrerequisitesValid with a mobile order and no providerNumber", () => { //Arrange