[IMP] qweb: throw error when t-component is not used with a 't' tag

This commit is contained in:
Mathieu Duckerts-Antoine
2021-10-19 16:01:36 +02:00
committed by Géry Debongnie
parent ed831320db
commit ee64de8b3f
3 changed files with 5 additions and 17 deletions
@@ -212,22 +212,6 @@ exports[`t-component t-component not on a <t> node 1`] = `
}"
`;
exports[`t-component t-component not on a <t> node 2`] = `
"function anonymous(bdom, helpers
) {
let { text, createBlock, list, multi, html, toggler, component } = bdom;
let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, shallowEqual } = helpers;
let block1 = createBlock(\`<div><block-child-0/></div>\`);
return function template(ctx, node, key = \\"\\") {
let Comp2 = ctx['Child'];
let b2 = toggler(Comp2, component(Comp2, {}, key + \`__1\`, node, ctx));
return block1([], [b2]);
}
}"
`;
exports[`t-component t-component works in simple case 1`] = `
"function anonymous(bdom, helpers
) {