Skip to content

Commit 65b28ed

Browse files
committed
new failing test for #2086
1 parent 85e25a9 commit 65b28ed

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<script>
2+
export let id;
3+
</script>
4+
5+
{id}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export default {
2+
html: `
3+
1
4+
`,
5+
6+
test({ assert, component, target }) {
7+
component.desks = [
8+
{
9+
id: 1,
10+
teams: [{ id: 2 }]
11+
}
12+
];
13+
14+
assert.htmlEqual(target.innerHTML, '2');
15+
}
16+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<script>
2+
import Child from './Child.svelte';
3+
4+
export let desks = [
5+
{
6+
id: 1,
7+
teams: [{ id: 1 }]
8+
}
9+
];
10+
</script>
11+
12+
{#each desks as desk (desk.id)}
13+
{#each desk.teams as team (team.id)}
14+
<Child id={team.id} />
15+
{/each}
16+
{/each}

0 commit comments

Comments
 (0)