From d16efef1fc8acf56974f3af5ad21c352caa8758c Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Mon, 3 Jun 2024 09:20:05 -0400 Subject: [PATCH] fix test --- src/layouts/bailout-page/bailout-page.spec.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 );