0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-30 00:46:29 +01:00

add failing test for #1195

This commit is contained in:
Conduitry 2018-03-02 15:54:17 -05:00
parent 8aaf92aca2
commit ff6e104f92
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,9 @@
export default {
data: {
array: [true, false],
},
html: `
<div>foo</div>
<div>bar</div>
`,
};

View File

@ -0,0 +1,7 @@
{{#each array as item}}
{{#if item}}
<div>foo</div>
{{else}}
<div>bar</div>
{{/if}}
{{/each}}