This commit is contained in:
Bill Richardson 2024-06-03 09:20:05 -04:00
parent 4c84dee019
commit d16efef1fc

View file

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