test(compiler-core): test dynamic component block

This commit is contained in:
Evan You 2020-04-22 14:47:31 -04:00
parent 7d0ab3392a
commit 7d858a9001

View File

@ -809,6 +809,7 @@ describe('compiler: element transform', () => {
const { node, root } = parseWithBind(`<component is="foo" />`)
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(`<component :is="foo" />`)
expect(root.helpers).toContain(RESOLVE_DYNAMIC_COMPONENT)
expect(node).toMatchObject({
isBlock: true,
tag: {
callee: RESOLVE_DYNAMIC_COMPONENT,
arguments: [