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:
parent
8aaf92aca2
commit
ff6e104f92
9
test/runtime/samples/if-block-else-in-each/_config.js
Normal file
9
test/runtime/samples/if-block-else-in-each/_config.js
Normal file
@ -0,0 +1,9 @@
|
||||
export default {
|
||||
data: {
|
||||
array: [true, false],
|
||||
},
|
||||
html: `
|
||||
<div>foo</div>
|
||||
<div>bar</div>
|
||||
`,
|
||||
};
|
7
test/runtime/samples/if-block-else-in-each/main.html
Normal file
7
test/runtime/samples/if-block-else-in-each/main.html
Normal file
@ -0,0 +1,7 @@
|
||||
{{#each array as item}}
|
||||
{{#if item}}
|
||||
<div>foo</div>
|
||||
{{else}}
|
||||
<div>bar</div>
|
||||
{{/if}}
|
||||
{{/each}}
|
Loading…
Reference in New Issue
Block a user