mirror of https://github.com/sveltejs/svelte
Merge pull request #3147 from sveltejs/gh-2693
distinguish between lazy and non-lazy expressionspull/3149/head
commit
73a745b8d1
@ -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