test(compiler-core): test dynamic component block
This commit is contained in:
parent
7d0ab3392a
commit
7d858a9001
@ -809,6 +809,7 @@ describe('compiler: element transform', () => {
|
|||||||
const { node, root } = parseWithBind(`<component is="foo" />`)
|
const { node, root } = parseWithBind(`<component is="foo" />`)
|
||||||
expect(root.helpers).toContain(RESOLVE_DYNAMIC_COMPONENT)
|
expect(root.helpers).toContain(RESOLVE_DYNAMIC_COMPONENT)
|
||||||
expect(node).toMatchObject({
|
expect(node).toMatchObject({
|
||||||
|
isBlock: true,
|
||||||
tag: {
|
tag: {
|
||||||
callee: RESOLVE_DYNAMIC_COMPONENT,
|
callee: RESOLVE_DYNAMIC_COMPONENT,
|
||||||
arguments: [
|
arguments: [
|
||||||
@ -826,6 +827,7 @@ describe('compiler: element transform', () => {
|
|||||||
const { node, root } = parseWithBind(`<component :is="foo" />`)
|
const { node, root } = parseWithBind(`<component :is="foo" />`)
|
||||||
expect(root.helpers).toContain(RESOLVE_DYNAMIC_COMPONENT)
|
expect(root.helpers).toContain(RESOLVE_DYNAMIC_COMPONENT)
|
||||||
expect(node).toMatchObject({
|
expect(node).toMatchObject({
|
||||||
|
isBlock: true,
|
||||||
tag: {
|
tag: {
|
||||||
callee: RESOLVE_DYNAMIC_COMPONENT,
|
callee: RESOLVE_DYNAMIC_COMPONENT,
|
||||||
arguments: [
|
arguments: [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user