new failing test for #2086

pull/3209/head
Rich Harris 6 years ago
parent 85e25a957d
commit 65b28ed0f5

@ -0,0 +1,5 @@
<script>
export let id;
</script>
{id}

@ -0,0 +1,16 @@
export default {
html: `
1
`,
test({ assert, component, target }) {
component.desks = [
{
id: 1,
teams: [{ id: 2 }]
}
];
assert.htmlEqual(target.innerHTML, '2');
}
};

@ -0,0 +1,16 @@
<script>
import Child from './Child.svelte';
export let desks = [
{
id: 1,
teams: [{ id: 1 }]
}
];
</script>
{#each desks as desk (desk.id)}
{#each desk.teams as team (team.id)}
<Child id={team.id} />
{/each}
{/each}
Loading…
Cancel
Save