mirror of https://github.com/sveltejs/svelte
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
396 B
21 lines
396 B
5 years ago
|
export default {
|
||
|
props: {
|
||
|
animalEntries: [
|
||
|
{ animal: 'raccoon', class: 'mammal' },
|
||
|
{ animal: 'eagle', class: 'bird' }
|
||
|
]
|
||
|
},
|
||
|
|
||
|
html: `
|
||
|
<p class="mammal">raccoon</p>
|
||
|
<p class="bird">eagle</p>
|
||
|
`,
|
||
|
|
||
|
test({ assert, component, target }) {
|
||
|
component.animalEntries = [{ animal: 'cow', class: 'mammal' }];
|
||
|
assert.htmlEqual(target.innerHTML, `
|
||
|
<p class="mammal">cow</p>
|
||
|
`);
|
||
|
},
|
||
|
};
|