From: Evan You Date: Thu, 2 Apr 2020 01:39:37 +0000 (-0400) Subject: chore: avoid v-cloak test warning X-Git-Tag: v3.0.0-alpha.11~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8080c38323ebeedfbc4c930f7fe54801cf0fc74e;p=thirdparty%2Fvuejs%2Fcore.git chore: avoid v-cloak test warning --- diff --git a/packages/runtime-dom/__tests__/directives/vCloak.spec.ts b/packages/runtime-dom/__tests__/directives/vCloak.spec.ts index 61de3c7642..813147cc33 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) }) })