chore: avoid v-cloak test warning

This commit is contained in:
Evan You 2020-04-01 21:39:37 -04:00
parent e93e426bfa
commit 8080c38323

View File

@ -4,7 +4,9 @@ describe('vCloak', () => {
test('should be removed after compile', () => {
const root = document.createElement('div')
root.setAttribute('v-cloak', '')
createApp({}).mount(root)
createApp({
render() {}
}).mount(root)
expect(root.hasAttribute('v-cloak')).toBe(false)
})
})