]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: avoid v-cloak test warning
authorEvan You <yyx990803@gmail.com>
Thu, 2 Apr 2020 01:39:37 +0000 (21:39 -0400)
committerEvan You <yyx990803@gmail.com>
Thu, 2 Apr 2020 01:39:47 +0000 (21:39 -0400)
packages/runtime-dom/__tests__/directives/vCloak.spec.ts

index 61de3c7642667d50c786840ab41529fbc527f4c3..813147cc332ee3deee7d2b779144917d21777429 100644 (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)
   })
 })