mirror of https://github.com/sveltejs/svelte
distinguish between lazy and non-lazy expressions - fixes #2693
parent
220515b605
commit
91aabf5f49
@ -0,0 +1,8 @@
|
||||
export default {
|
||||
html: '<p>0</p>',
|
||||
|
||||
test({ assert, component, target }) {
|
||||
component.selected = 3;
|
||||
assert.htmlEqual(target.innerHTML, '<p>3</p>');
|
||||
}
|
||||
};
|
@ -0,0 +1,6 @@
|
||||
<script>
|
||||
let list = [0, 1, 2, 3, 4];
|
||||
export let selected = 0;
|
||||
</script>
|
||||
|
||||
<p>{list.filter(x => x === selected)}</p>
|
Loading…
Reference in new issue