From 8080c38323ebeedfbc4c930f7fe54801cf0fc74e Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 1 Apr 2020 21:39:37 -0400 Subject: [PATCH] chore: avoid v-cloak test warning --- packages/runtime-dom/__tests__/directives/vCloak.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/runtime-dom/__tests__/directives/vCloak.spec.ts b/packages/runtime-dom/__tests__/directives/vCloak.spec.ts index 61de3c76426..813147cc332 100644 --- a/packages/runtime-dom/__tests__/directives/vCloak.spec.ts +++ b/packages/runtime-dom/__tests__/directives/vCloak.spec.ts @@ -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) }) })