Skip to content

Commit

Permalink
chore: avoid v-cloak test warning
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Apr 2, 2020
1 parent e93e426 commit 8080c38
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/runtime-dom/__tests__/directives/vCloak.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
})

0 comments on commit 8080c38

Please sign in to comment.