2024-11-07 12:26:45 +01:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
|
|
exports[`t-custom can use t-custom directive on a node 1`] = `
|
|
|
|
|
"function anonymous(app, bdom, helpers
|
|
|
|
|
) {
|
|
|
|
|
let { text, createBlock, list, multi, html, toggler, comment } = bdom;
|
|
|
|
|
|
|
|
|
|
let block1 = createBlock(\`<div class=\\"my-div\\" block-handler-0=\\"click\\"/>\`);
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
let hdlr1 = [ctx['click'], ctx];
|
|
|
|
|
return block1([hdlr1]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
|
|
2024-11-25 15:27:27 +01:00
|
|
|
exports[`t-custom can use t-custom directive with modifiers on a node 1`] = `
|
2024-11-07 12:26:45 +01:00
|
|
|
"function anonymous(app, bdom, helpers
|
|
|
|
|
) {
|
|
|
|
|
let { text, createBlock, list, multi, html, toggler, comment } = bdom;
|
|
|
|
|
|
|
|
|
|
let block1 = createBlock(\`<div class=\\"my-div\\" block-handler-0=\\"click\\"/>\`);
|
|
|
|
|
|
|
|
|
|
return function template(ctx, node, key = \\"\\") {
|
|
|
|
|
let hdlr1 = [ctx['click'], ctx];
|
|
|
|
|
return block1([hdlr1]);
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|