Skip to content

Commit

Permalink
test(compiler-core): test dynamic component block
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Apr 22, 2020
1 parent 7d0ab33 commit 7d858a9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand All @@ -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: [
Expand Down

0 comments on commit 7d858a9

Please sign in to comment.