Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
test('should check show value is truthy', async () => {
const component = defineComponent({
data() {
return { value: true }
},
render() {
return [withVShow(h('div'), this.value)]
}
})
app.mount(component, root)
const $div = root.querySelector('div')
expect($div.style.display).toEqual('')
})