]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix test type
authorEvan You <yyx990803@gmail.com>
Sat, 22 Feb 2020 02:54:20 +0000 (03:54 +0100)
committerEvan You <yyx990803@gmail.com>
Sat, 22 Feb 2020 02:54:20 +0000 (03:54 +0100)
packages/runtime-core/__tests__/apiTemplateRef.spec.ts

index 8ff6b2c59e1f3d4d3cfe6c42bbda122a1e88ad82..68b14dd2b28673bb02ac2fb3e0dcc750dc4c74f9 100644 (file)
@@ -142,7 +142,7 @@ describe('api: template refs', () => {
       foo: ref(null),
       bar: ref(null)
     }
-    const refKey: Ref<keyof typeof refs> = ref('foo')
+    const refKey = ref('foo') as Ref<keyof typeof refs>
 
     const Comp = {
       setup() {