Skip to content

Commit 76a8385

Browse files
committed
chore: fix resolveAsset test typing
1 parent 10ad965 commit 76a8385

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/runtime-core/__tests__/helpers/resolveAssets.spec.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import {
77
Directive,
88
resolveDynamicComponent,
99
h,
10-
serializeInner
10+
serializeInner,
11+
createVNode
1112
} from '@vue/runtime-test'
1213
import { mockWarn } from '@vue/shared'
1314

@@ -134,7 +135,7 @@ describe('resolveAssets', () => {
134135
const Root = {
135136
setup() {
136137
return () => {
137-
return h(resolveDynamicComponent('div') as string, null, {
138+
return createVNode(resolveDynamicComponent('div') as string, null, {
138139
default: () => 'hello'
139140
})
140141
}

0 commit comments

Comments
 (0)