fix navigation jest mock
This commit is contained in:
CarlNation 2023-08-03 10:52:36 -04:00
parent 454d9e9886
commit 661e942b2b

View file

@ -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