update forgotten test
This commit is contained in:
parent
0fc57dedb1
commit
04c386075d
1 changed files with 5 additions and 4 deletions
|
|
@ -26,7 +26,8 @@ function setupMocks({ issPage = issPageValues.VIN_LOOKUP }) {
|
|||
|
||||
const mocks = getMountOptions({
|
||||
router: {
|
||||
navigate: jest.fn()
|
||||
navigate: jest.fn(),
|
||||
navigateWithSpinner: jest.fn()
|
||||
},
|
||||
route: {
|
||||
query: {
|
||||
|
|
@ -2120,7 +2121,7 @@ describe('vehicle-questions-mixin', () => {
|
|||
wrapper.vm.navigateBackByVehicleQuestions();
|
||||
|
||||
// Assert
|
||||
expect(wrapper.vm.$router.navigate).toHaveBeenCalledWith(
|
||||
expect(wrapper.vm.$router.navigateWithSpinner).toHaveBeenCalledWith(
|
||||
navigationScenarios.CLICKED_BACK_WITH_REPAIR,
|
||||
{ query: { issPage: issPageValues.COVERAGE_STATEMENT } }
|
||||
);
|
||||
|
|
@ -2141,7 +2142,7 @@ describe('vehicle-questions-mixin', () => {
|
|||
wrapper.vm.navigateBackByVehicleQuestions();
|
||||
|
||||
// Assert
|
||||
expect(wrapper.vm.$router.navigate).toHaveBeenCalledWith(
|
||||
expect(wrapper.vm.$router.navigateWithSpinner).toHaveBeenCalledWith(
|
||||
navigationScenarios.CLICKED_BACK_WITH_MULTIPLE_PARTS_TO_CHOOSE,
|
||||
{ query: { issPage: issPageValues.MOLDING_QUESTIONS } }
|
||||
);
|
||||
|
|
@ -2160,7 +2161,7 @@ describe('vehicle-questions-mixin', () => {
|
|||
wrapper.vm.navigateBackByVehicleQuestions();
|
||||
|
||||
// Assert
|
||||
expect(wrapper.vm.$router.navigate).toHaveBeenCalledWith(
|
||||
expect(wrapper.vm.$router.navigateWithSpinner).toHaveBeenCalledWith(
|
||||
navigationScenarios.CLICKED_BACK_WITH_PART_QUESTIONS,
|
||||
{ query: { issPage: issPageValues.MOLDING_QUESTIONS } }
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue