fix test
This commit is contained in:
parent
4c84dee019
commit
d16efef1fc
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue