Skip to content

Commit dbbd999

Browse files
committed
chore: fix Portal test types
1 parent 45ba06a commit dbbd999

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/runtime-core/__tests__/components/Portal.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
TestElement,
1212
TestNode
1313
} from '@vue/runtime-test'
14-
import { VNodeArrayChildren } from '../../src/vnode'
14+
import { VNodeArrayChildren, createVNode } from '../../src/vnode'
1515

1616
describe('renderer: portal', () => {
1717
test('should work', () => {
@@ -71,7 +71,7 @@ describe('renderer: portal', () => {
7171

7272
expect(serializeInner(target)).toMatchSnapshot()
7373

74-
children.value = [h(Text, 'teleported')]
74+
children.value = [createVNode(Text, null, 'teleported')]
7575
await nextTick()
7676

7777
expect(serializeInner(target)).toMatchSnapshot()

0 commit comments

Comments
 (0)