maxgui/src/components/common/Parameters/__tests__/ParameterInput.spec.js
/**
 * This function tests component renders accurate input type
 * @param {Object} wrapper A Wrapper is an object that contains a mounted component and methods to test the component
 * @param {Object} item a parameter object must contains at least id, value and type attributes
 * @param {String} typeClass type class of parameter object
 */
This function tests component renders accurate input type
@param {Object} wrapper A Wrapper is an object that contains a mounted component and methods to test the component
@param {Object} item a parameter object must contains at least id, value and type attributes
@param {String} typeClass type class of parameter object
This function tests component renders accurate input type @param { Object } wrapper A Wrapper is an object that contains a mounted component and methods to test the component @param { Object } item a parameter object must contains at least id value and type attributes @param { String } typeClass type class of parameter object
async function renderAccurateInputType(wrapper, item, typeClass) {
    await wrapper.setProps({
        item: item,
    })
    let inputWrapper = wrapper.findAll(`.${typeClass}`)
    expect(inputWrapper.length).to.be.equal(1)
}
async function renderAccurateInputType ( wrapper , item , typeClass ) { await wrapper . setProps ( { item : item , } ) let inputWrapper = wrapper . findAll ( ` ${ typeClass } ` ) expect ( inputWrapper . length ) . to . be . equal ( 1 ) }
This function tests component renders accurate input type
 @param {Object} wrapper A Wrapper is an object that contains a mounted component and methods to test the component
 @param {Object} item a parameter object must contains at least id, value and type attributes
 @param {String} typeClass type class of parameter object
This function tests component renders accurate input type @param { Object } wrapper A Wrapper is an object that contains a mounted component and methods to test the component @param { Object } item a parameter object must contains at least id value and type attributes @param { String } typeClass type class of parameter object