]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix test
authorEvan You <evan@vuejs.org>
Sun, 1 Dec 2024 09:16:34 +0000 (17:16 +0800)
committerEvan You <evan@vuejs.org>
Sun, 1 Dec 2024 09:21:07 +0000 (17:21 +0800)
packages/runtime-vapor/__tests__/dom/prop.spec.ts

index c5e526b35a347aa4ec731b959a44d22cacbc7459..50a39cea9bf54bda1545750f5832644883122b9b 100644 (file)
@@ -11,7 +11,7 @@ import {
 } from '../../src/dom/prop'
 import { setStyle } from '../../src/dom/style'
 import {
-  createComponentInstance,
+  ComponentInternalInstance,
   setCurrentInstance,
 } from '../../src/component'
 import { getMetadata, recordPropMetadata } from '../../src/componentMetadata'
@@ -19,7 +19,7 @@ import { getCurrentScope } from '@vue/reactivity'
 
 let removeComponentInstance = NOOP
 beforeEach(() => {
-  const instance = createComponentInstance((() => {}) as any, {}, null)
+  const instance = new ComponentInternalInstance((() => {}) as any, {}, null)
   const reset = setCurrentInstance(instance)
   const prev = getCurrentScope()
   instance.scope.on()