From: Evan You Date: Tue, 24 Mar 2020 16:58:12 +0000 (-0400) Subject: chore: fix Portal test types X-Git-Tag: v3.0.0-alpha.10~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dbbd9990e0a9ceaa728f8b55c052142280dbc68b;p=thirdparty%2Fvuejs%2Fcore.git chore: fix Portal test types --- diff --git a/packages/runtime-core/__tests__/components/Portal.spec.ts b/packages/runtime-core/__tests__/components/Portal.spec.ts index 52e1676a5e..bdd50c7fd5 100644 --- a/packages/runtime-core/__tests__/components/Portal.spec.ts +++ b/packages/runtime-core/__tests__/components/Portal.spec.ts @@ -11,7 +11,7 @@ import { TestElement, TestNode } from '@vue/runtime-test' -import { VNodeArrayChildren } from '../../src/vnode' +import { VNodeArrayChildren, createVNode } from '../../src/vnode' describe('renderer: portal', () => { test('should work', () => { @@ -71,7 +71,7 @@ describe('renderer: portal', () => { expect(serializeInner(target)).toMatchSnapshot() - children.value = [h(Text, 'teleported')] + children.value = [createVNode(Text, null, 'teleported')] await nextTick() expect(serializeInner(target)).toMatchSnapshot()