소스 검색

chore: fix test type

Evan You 6 년 전
부모
커밋
0c67201942
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/runtime-core/__tests__/apiTemplateRef.spec.ts

+ 1 - 1
packages/runtime-core/__tests__/apiTemplateRef.spec.ts

@@ -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() {