Files
owl/tests/app/__snapshots__/app.test.ts.snap
T

44 lines
1.1 KiB
Plaintext
Raw Normal View History

2020-11-26 16:45:25 +01:00
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`app App supports env with getters/setters 1`] = `
"function anonymous(bdom, helpers
) {
let { text, createBlock, list, multi, html, toggler, component, comment } = bdom;
let block1 = createBlock(\`<div><block-text-0/> <block-text-1/></div>\`);
return function template(ctx, node, key = \\"\\") {
let d1 = ctx['env'].someVal;
let d2 = Object.keys(ctx['env'].services);
return block1([d1, d2]);
}
}"
`;
2021-12-20 17:32:32 +01:00
exports[`app can configure an app with props 1`] = `
"function anonymous(bdom, helpers
) {
let { text, createBlock, list, multi, html, toggler, component, comment } = bdom;
let block1 = createBlock(\`<div><block-text-0/></div>\`);
return function template(ctx, node, key = \\"\\") {
let d1 = ctx['props'].value;
return block1([d1]);
}
}"
`;
2020-11-26 16:45:25 +01:00
exports[`app destroy remove the widget from the DOM 1`] = `
"function anonymous(bdom, helpers
) {
2021-11-29 13:22:04 +01:00
let { text, createBlock, list, multi, html, toggler, component, comment } = bdom;
2020-11-26 16:45:25 +01:00
let block1 = createBlock(\`<div/>\`);
return function template(ctx, node, key = \\"\\") {
return block1();
}
}"
`;