mirror of https://github.com/sveltejs/svelte
23 lines
401 B
23 lines
401 B
export default {
|
|
data: {
|
|
animalPawsEntries: [
|
|
{ animal: 'raccoon', pawType: 'hands' },
|
|
{ animal: 'eagle', pawType: 'wings' }
|
|
]
|
|
},
|
|
|
|
html: `
|
|
<p>raccoon: hands</p>
|
|
<p>eagle: wings</p>
|
|
`,
|
|
|
|
test ( assert, component, target ) {
|
|
component.set({
|
|
animalPawsEntries: [{ animal: 'cow', pawType: 'hooves' }]
|
|
});
|
|
assert.htmlEqual( target.innerHTML, `
|
|
<p>cow: hooves</p>
|
|
`);
|
|
},
|
|
};
|