Files
owl/tests/components/__snapshots__/t_call_block.test.ts.snap
T
Géry Debongnie 2068196377 [IMP] compiler: generate templates in strict mode
Before this commit, generated template functions were not using strict
mode. This may be a bad idea, since strict mode could be more performant
in some cases.
2022-06-24 15:54:09 +02:00

17 lines
440 B
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`t-call-block simple t-call-block with static text 1`] = `
"function anonymous(app, bdom, helpers
) {
\\"use strict\\";
let { text, createBlock, list, multi, html, toggler, comment } = bdom;
let block1 = createBlock(\`<div><block-child-0/></div>\`);
return function template(ctx, node, key = \\"\\") {
const b2 = ctx['myBlock']();
return block1([], [b2]);
}
}"
`;