From 7d858a90013168a1b74dfb8c2f2e41088d949e9d Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 22 Apr 2020 14:47:31 -0400 Subject: [PATCH] test(compiler-core): test dynamic component block --- .../compiler-core/__tests__/transforms/transformElement.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/compiler-core/__tests__/transforms/transformElement.spec.ts b/packages/compiler-core/__tests__/transforms/transformElement.spec.ts index a25756d6bed..9b08c4c6365 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: [