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({
|
const { wrapper } = setupMocks({
|
||||||
customMountOptions: {
|
customMountOptions: {
|
||||||
router: {
|
router: {
|
||||||
navigateWithoutSaving: jest.fn(),
|
navigateWithSaving: jest.fn(),
|
||||||
},
|
},
|
||||||
route: { schedule },
|
route: { schedule },
|
||||||
},
|
},
|
||||||
|
|
@ -67,7 +67,7 @@ describe("schedule.vue", () => {
|
||||||
await wrapper.vm.forwardButtonAction();
|
await wrapper.vm.forwardButtonAction();
|
||||||
|
|
||||||
//Assert
|
//Assert
|
||||||
expect(wrapper.vm.$router.navigateWithoutSaving).toHaveBeenCalled();
|
expect(wrapper.vm.$router.navigateWithSaving).toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
test("should pass arePagePrerequisitesValid with a mobile order and no providerNumber", () => {
|
test("should pass arePagePrerequisitesValid with a mobile order and no providerNumber", () => {
|
||||||
//Arrange
|
//Arrange
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue