chore: fix resolveAsset test typing

This commit is contained in:
Evan You 2020-03-24 13:02:17 -04:00
parent 10ad965100
commit 76a83857c1

View File

@ -7,7 +7,8 @@ import {
Directive,
resolveDynamicComponent,
h,
serializeInner
serializeInner,
createVNode
} from '@vue/runtime-test'
import { mockWarn } from '@vue/shared'
@ -134,7 +135,7 @@ describe('resolveAssets', () => {
const Root = {
setup() {
return () => {
return h(resolveDynamicComponent('div') as string, null, {
return createVNode(resolveDynamicComponent('div') as string, null, {
default: () => 'hello'
})
}