diff --git a/src/layouts/bailout-page/bailout-page.spec.js b/src/layouts/bailout-page/bailout-page.spec.js index 1fb8fd6d..c3feda2c 100644 --- a/src/layouts/bailout-page/bailout-page.spec.js +++ b/src/layouts/bailout-page/bailout-page.spec.js @@ -23,7 +23,8 @@ jest.mock('@/helpers/layout-helper.js', () => jest.fn()); function getMountedComponent(mainInitialState = {}, initialData = {}, methodToRunAfterInitializingStore = () => {}) { const mountOptions = getMountOptions({ router: { - navigate: jest.fn() + navigate: jest.fn(), + navigateWithSpinner: jest.fn() } }); @@ -428,7 +429,7 @@ describe('Bailout page', () => { wrapper.vm.backButtonAction(); // Assert - expect(wrapper.vm.$router.navigate).toHaveBeenCalledWith( + expect(wrapper.vm.$router.navigateWithSpinner).toHaveBeenCalledWith( wrapper.vm.navigationScenarios.CLICKED_BACK_PREVIOUS, wrapper.vm.$route );