mirror of https://github.com/sveltejs/svelte
parent
ffe91846f0
commit
9607593705
@ -0,0 +1,20 @@
|
||||
export default {
|
||||
data: {
|
||||
animalPawsEntries: [
|
||||
['raccoon', 'hands'],
|
||||
['eagle', 'wings']
|
||||
]
|
||||
},
|
||||
|
||||
html: `
|
||||
<p>hands</p>
|
||||
<p>wings</p>
|
||||
`,
|
||||
|
||||
test ( assert, component, target ) {
|
||||
component.set({ animalPawsEntries: [['foo', 'bar']] });
|
||||
assert.htmlEqual( target.innerHTML, `
|
||||
<p>bar</p>
|
||||
`);
|
||||
},
|
||||
};
|
@ -0,0 +1,3 @@
|
||||
{#each animalPawsEntries as [, pawType]}
|
||||
<p>{pawType}</p>
|
||||
{/each}
|
Loading…
Reference in new issue