// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`t-if a t-if next to a div 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block2 = createBlock(\`
foo
\`); return function template(ctx, node, key = \\"\\") { let b2, b3; b2 = block2(); if (ctx['cond']) { b3 = text(\`1\`); } return multi([b2, b3]); } }" `; exports[`t-if a t-if with two inner nodes 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block3 = createBlock(\`yip\`); let block4 = createBlock(\`
yip
\`); return function template(ctx, node, key = \\"\\") { let b2; if (ctx['condition']) { const b3 = block3(); const b4 = block4(); b2 = multi([b3, b4]); } return multi([b2]); } }" `; exports[`t-if boolean value condition elif (no outside node) 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; return function template(ctx, node, key = \\"\\") { let b2, b3, b4, b5; if (ctx['color']=='black') { b2 = text(\`black pearl\`); } else if (ctx['color']=='yellow') { b3 = text(\`yellow submarine\`); } else if (ctx['color']=='red') { b4 = text(\`red is dead\`); } else { b5 = text(\`beer\`); } return multi([b2, b3, b4, b5]); } }" `; exports[`t-if boolean value condition elif 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { let b2, b3, b4, b5; if (ctx['color']=='black') { b2 = text(\`black pearl\`); } else if (ctx['color']=='yellow') { b3 = text(\`yellow submarine\`); } else if (ctx['color']=='red') { b4 = text(\`red is dead\`); } else { b5 = text(\`beer\`); } return block1([], [b2, b3, b4, b5]); } }" `; exports[`t-if boolean value condition else 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block1 = createBlock(\`
beginend
\`); return function template(ctx, node, key = \\"\\") { let b2, b3; if (ctx['condition']) { b2 = text(\`ok\`); } else { b3 = text(\`ok-else\`); } return block1([], [b2, b3]); } }" `; exports[`t-if boolean value condition false else 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block1 = createBlock(\`
beginend
\`); return function template(ctx, node, key = \\"\\") { let b2, b3; if (ctx['condition']) { b2 = text(\`fail\`); } else { b3 = text(\`fail-else\`); } return block1([], [b2, b3]); } }" `; exports[`t-if boolean value condition missing 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block1 = createBlock(\`\`); return function template(ctx, node, key = \\"\\") { let b2; if (ctx['condition']) { b2 = text(\`fail\`); } return block1([], [b2]); } }" `; exports[`t-if can use some boolean operators in expressions 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { let b2, b3, b4, b5, b6, b7, b8, b9; if (ctx['cond1']&&ctx['cond2']) { b2 = text(\`and\`); } if (ctx['cond1']&&ctx['cond3']) { b3 = text(\`nope\`); } if (ctx['cond1']||ctx['cond3']) { b4 = text(\`or\`); } if (ctx['cond3']||ctx['cond4']) { b5 = text(\`nope\`); } if (ctx['m']>3) { b6 = text(\`mgt\`); } if (ctx['n']>3) { b7 = text(\`ngt\`); } if (ctx['m']<3) { b8 = text(\`mlt\`); } if (ctx['n']<3) { b9 = text(\`nlt\`); } return block1([], [b2, b3, b4, b5, b6, b7, b8, b9]); } }" `; exports[`t-if div containing a t-if with two inner nodes 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block1 = createBlock(\`
\`); let block3 = createBlock(\`yip\`); let block4 = createBlock(\`
yip
\`); return function template(ctx, node, key = \\"\\") { let b2; if (ctx['condition']) { const b3 = block3(); const b4 = block4(); b2 = multi([b3, b4]); } return block1([], [b2]); } }" `; exports[`t-if dynamic content after t-if with two children nodes 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block1 = createBlock(\`
\`); let block3 = createBlock(\`

1

\`); let block4 = createBlock(\`

2

\`); return function template(ctx, node, key = \\"\\") { let b2; if (ctx['condition']) { const b3 = block3(); const b4 = block4(); b2 = multi([b3, b4]); } let txt1 = ctx['text']; return block1([txt1], [b2]); } }" `; exports[`t-if just a t-if 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; return function template(ctx, node, key = \\"\\") { let b2; if (ctx['condition']) { b2 = text(\`ok\`); } return multi([b2]); } }" `; exports[`t-if simple t-if/t-else 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; return function template(ctx, node, key = \\"\\") { let b2, b3; if (ctx['condition']) { b2 = text(\`1\`); } else { b3 = text(\`2\`); } return multi([b2, b3]); } }" `; exports[`t-if simple t-if/t-else in a div 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { let b2, b3; if (ctx['condition']) { b2 = text(\`1\`); } else { b3 = text(\`2\`); } return block1([], [b2, b3]); } }" `; exports[`t-if t-esc with t-elif 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { let b2, b3; if (false) { b2 = text(\`abc\`); } else { b3 = text('x'); } return block1([], [b2, b3]); } }" `; exports[`t-if t-esc with t-if 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { let b2; if (true) { b2 = text('x'); } return block1([], [b2]); } }" `; exports[`t-if t-if and t-else with two nodes 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block4 = createBlock(\`a\`); let block5 = createBlock(\`b\`); return function template(ctx, node, key = \\"\\") { let b2, b3; if (ctx['condition']) { b2 = text(\`1\`); } else { const b4 = block4(); const b5 = block5(); b3 = multi([b4, b5]); } return multi([b2, b3]); } }" `; exports[`t-if t-if in a div 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { let b2; if (ctx['condition']) { b2 = text(\`ok\`); } return block1([], [b2]); } }" `; exports[`t-if t-if in a t-if 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block1 = createBlock(\`
\`); let block2 = createBlock(\`1\`); return function template(ctx, node, key = \\"\\") { let b2; if (ctx['cond1']) { let b3; if (ctx['cond2']) { b3 = text(\`2\`); } b2 = block2([], [b3]); } return block1([], [b2]); } }" `; exports[`t-if t-if with empty content 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; return function template(ctx, node, key = \\"\\") { let b2, b3; b2 = text(\`hello\`); if (ctx['condition']) { b3 = text(\`\`); } return multi([b2, b3]); } }" `; exports[`t-if t-if/t-else with more content 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; return function template(ctx, node, key = \\"\\") { let b2, b3; if (ctx['condition']) { if (ctx['condition']) { b2 = text(\`asf\`); } } else { b3 = text(\`coucou\`); } return multi([b2, b3]); } }" `; exports[`t-if t-set, then t-if 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let { isBoundary, withDefault, setContextValue } = helpers; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { ctx = Object.create(ctx); ctx[isBoundary] = 1 let b2; setContextValue(ctx, \\"title\\", 'test'); if (ctx['title']) { b2 = text(ctx['title']); } return block1([], [b2]); } }" `; exports[`t-if t-set, then t-if, part 2 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let { isBoundary, withDefault, setContextValue } = helpers; let block1 = createBlock(\`
\`); let block2 = createBlock(\`COUCOU\`); return function template(ctx, node, key = \\"\\") { ctx = Object.create(ctx); ctx[isBoundary] = 1 let b2; setContextValue(ctx, \\"y\\", true); setContextValue(ctx, \\"x\\", ctx['y']); if (ctx['x']) { b2 = block2(); } return block1([], [b2]); } }" `; exports[`t-if t-set, then t-if, part 3 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let { isBoundary, withDefault, setContextValue } = helpers; let block1 = createBlock(\`
\`); let block2 = createBlock(\`AAA\`); let block3 = createBlock(\`BBB\`); return function template(ctx, node, key = \\"\\") { ctx = Object.create(ctx); ctx[isBoundary] = 1 let b2, b3; setContextValue(ctx, \\"y\\", false); setContextValue(ctx, \\"x\\", ctx['y']); if (ctx['x']) { b2 = block2(); } else if (!ctx['x']) { b3 = block3(); } return block1([], [b2, b3]); } }" `; exports[`t-if two consecutive t-if 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; return function template(ctx, node, key = \\"\\") { let b2, b3; if (ctx['cond1']) { b2 = text(\`1\`); } if (ctx['cond2']) { b3 = text(\`2\`); } return multi([b2, b3]); } }" `; exports[`t-if two consecutive t-if in a div 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { let b2, b3; if (ctx['cond1']) { b2 = text(\`1\`); } if (ctx['cond2']) { b3 = text(\`2\`); } return block1([], [b2, b3]); } }" `; exports[`t-if two t-ifs next to each other 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let block1 = createBlock(\`
\`); let block2 = createBlock(\`\`); let block4 = createBlock(\`

1

\`); let block5 = createBlock(\`

2

\`); return function template(ctx, node, key = \\"\\") { let b2, b3; if (ctx['condition']) { let txt1 = ctx['text']; b2 = block2([txt1]); } if (ctx['condition']) { const b4 = block4(); const b5 = block5(); b3 = multi([b4, b5]); } return block1([], [b2, b3]); } }" `;