// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`basics accept ES6-like syntax for props (with getters) 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue } = helpers; let block1 = createBlock(\`\`); return function template(ctx, node, key = \\"\\") { let d1 = ctx['props'].greetings; return block1([d1]); } }" `; exports[`basics accept ES6-like syntax for props (with getters) 2`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue } = helpers; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { let b2 = component(\`Child\`, {greetings: ctx['greetings']}, key + \`__1\`, node, ctx); return block1([], [b2]); } }" `; exports[`basics explicit object prop 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue } = helpers; let block1 = createBlock(\`\`); return function template(ctx, node, key = \\"\\") { let d1 = ctx['state'].someval; return block1([d1]); } }" `; exports[`basics explicit object prop 2`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue } = helpers; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { let b2 = component(\`Child\`, {value: ctx['state'].val}, key + \`__1\`, node, ctx); return block1([], [b2]); } }" `; exports[`basics t-set with a body expression can be passed in props, and then t-raw 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue } = helpers; let block1 = createBlock(\`\`); return function template(ctx, node, key = \\"\\") { let d1 = ctx['props'].val; let b2 = html(ctx['props'].val); return block1([d1], [b2]); } }" `; exports[`basics t-set with a body expression can be passed in props, and then t-raw 2`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue } = helpers; let block1 = createBlock(\`
\`); let block2 = createBlock(\`

43

\`); return function template(ctx, node, key = \\"\\") { ctx = Object.create(ctx); ctx[isBoundary] = 1 let b2 = block2(); ctx[\`abc\`] = b2; let b3 = component(\`Child\`, {val: ctx['abc']}, key + \`__1\`, node, ctx); return block1([], [b3]); } }" `; exports[`basics t-set with a body expression can be used as textual prop 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue } = helpers; let block1 = createBlock(\`\`); return function template(ctx, node, key = \\"\\") { let d1 = ctx['props'].val; return block1([d1]); } }" `; exports[`basics t-set with a body expression can be used as textual prop 2`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue } = helpers; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { ctx = Object.create(ctx); ctx[isBoundary] = 1 setContextValue(ctx, \\"abc\\", \`42\`); let b2 = component(\`Child\`, {val: ctx['abc']}, key + \`__1\`, node, ctx); return block1([], [b2]); } }" `; exports[`basics t-set works 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue } = helpers; let block1 = createBlock(\`\`); return function template(ctx, node, key = \\"\\") { let d1 = ctx['props'].val; return block1([d1]); } }" `; exports[`basics t-set works 2`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue } = helpers; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { ctx = Object.create(ctx); ctx[isBoundary] = 1 setContextValue(ctx, \\"val\\", 42); let b2 = component(\`Child\`, {val: ctx['val']}, key + \`__1\`, node, ctx); return block1([], [b2]); } }" `;