chore: fix Portal test types
This commit is contained in:
parent
45ba06ac5f
commit
dbbd9990e0
@ -11,7 +11,7 @@ import {
|
|||||||
TestElement,
|
TestElement,
|
||||||
TestNode
|
TestNode
|
||||||
} from '@vue/runtime-test'
|
} from '@vue/runtime-test'
|
||||||
import { VNodeArrayChildren } from '../../src/vnode'
|
import { VNodeArrayChildren, createVNode } from '../../src/vnode'
|
||||||
|
|
||||||
describe('renderer: portal', () => {
|
describe('renderer: portal', () => {
|
||||||
test('should work', () => {
|
test('should work', () => {
|
||||||
@ -71,7 +71,7 @@ describe('renderer: portal', () => {
|
|||||||
|
|
||||||
expect(serializeInner(target)).toMatchSnapshot()
|
expect(serializeInner(target)).toMatchSnapshot()
|
||||||
|
|
||||||
children.value = [h(Text, 'teleported')]
|
children.value = [createVNode(Text, null, 'teleported')]
|
||||||
await nextTick()
|
await nextTick()
|
||||||
|
|
||||||
expect(serializeInner(target)).toMatchSnapshot()
|
expect(serializeInner(target)).toMatchSnapshot()
|
||||||
|
Loading…
Reference in New Issue
Block a user