update forgotten test

This commit is contained in:
Bill Richardson 2024-01-09 09:34:52 -05:00
parent 0fc57dedb1
commit 04c386075d

View file

@ -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 } }
);