CSR-1564
fix navigation jest mock
This commit is contained in:
parent
454d9e9886
commit
661e942b2b
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue