maxgui/tests/unit/utils.js
/**
 * This function mockups the action of closing a dialog
 * @param {Object} wrapper A Wrapper is an object that contains a mounted component and methods to test the component
 */
This function mockups the action of closing a dialog
@param {Object} wrapper A Wrapper is an object that contains a mounted component and methods to test the component
This function mockups the action of closing a dialog @param { Object } wrapper A Wrapper is an object that contains a mounted component and methods to test the component
async function hideDialogMock(wrapper) {
    await wrapper.setProps({
        value: false,
    })
    expect(wrapper.vm.computeShowDialog).to.be.false
}
async function hideDialogMock ( wrapper ) { await wrapper . setProps ( { value : false , } ) expect ( wrapper . vm . computeShowDialog ) . to . be . false }
This function mockups the action of closing a dialog
 @param {Object} wrapper A Wrapper is an object that contains a mounted component and methods to test the component
This function mockups the action of closing a dialog @param { Object } wrapper A Wrapper is an object that contains a mounted component and methods to test the component