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