Skip to content

Commit 8080c38

Browse files
committed
chore: avoid v-cloak test warning
1 parent e93e426 commit 8080c38

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/runtime-dom/__tests__/directives/vCloak.spec.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ describe('vCloak', () => {
44
test('should be removed after compile', () => {
55
const root = document.createElement('div')
66
root.setAttribute('v-cloak', '')
7-
createApp({}).mount(root)
7+
createApp({
8+
render() {}
9+
}).mount(root)
810
expect(root.hasAttribute('v-cloak')).toBe(false)
911
})
1012
})

0 commit comments

Comments
 (0)