We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45ba06a commit dbbd999Copy full SHA for dbbd999
packages/runtime-core/__tests__/components/Portal.spec.ts
@@ -11,7 +11,7 @@ import {
11
TestElement,
12
TestNode
13
} from '@vue/runtime-test'
14
-import { VNodeArrayChildren } from '../../src/vnode'
+import { VNodeArrayChildren, createVNode } from '../../src/vnode'
15
16
describe('renderer: portal', () => {
17
test('should work', () => {
@@ -71,7 +71,7 @@ describe('renderer: portal', () => {
71
72
expect(serializeInner(target)).toMatchSnapshot()
73
74
- children.value = [h(Text, 'teleported')]
+ children.value = [createVNode(Text, null, 'teleported')]
75
await nextTick()
76
77
0 commit comments