From: Evan You Date: Wed, 22 Apr 2020 18:47:31 +0000 (-0400) Subject: test(compiler-core): test dynamic component block X-Git-Tag: v3.0.0-beta.4~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7d858a90013168a1b74dfb8c2f2e41088d949e9d;p=thirdparty%2Fvuejs%2Fcore.git test(compiler-core): test dynamic component block --- diff --git a/packages/compiler-core/__tests__/transforms/transformElement.spec.ts b/packages/compiler-core/__tests__/transforms/transformElement.spec.ts index a25756d6be..9b08c4c636 100644 --- a/packages/compiler-core/__tests__/transforms/transformElement.spec.ts +++ b/packages/compiler-core/__tests__/transforms/transformElement.spec.ts @@ -809,6 +809,7 @@ describe('compiler: element transform', () => { const { node, root } = parseWithBind(``) expect(root.helpers).toContain(RESOLVE_DYNAMIC_COMPONENT) expect(node).toMatchObject({ + isBlock: true, tag: { callee: RESOLVE_DYNAMIC_COMPONENT, arguments: [ @@ -826,6 +827,7 @@ describe('compiler: element transform', () => { const { node, root } = parseWithBind(``) expect(root.helpers).toContain(RESOLVE_DYNAMIC_COMPONENT) expect(node).toMatchObject({ + isBlock: true, tag: { callee: RESOLVE_DYNAMIC_COMPONENT, arguments: [