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.
35 lines
448 B
35 lines
448 B
6 years ago
|
export default {
|
||
|
props: {
|
||
|
things: [
|
||
|
{ num: 1 },
|
||
|
{ num: 2 },
|
||
|
{ num: 3 }
|
||
|
]
|
||
|
},
|
||
|
|
||
|
html: `
|
||
|
<div>
|
||
|
<span>1</span>
|
||
|
<span>2</span>
|
||
|
<span>3</span>
|
||
|
</div>`,
|
||
|
|
||
|
test({ assert, component, target }) {
|
||
|
component.things = [
|
||
|
{ num: 1 },
|
||
|
{ num: 2 },
|
||
|
{ num: 3 },
|
||
|
{ num: 4 }
|
||
|
];
|
||
|
|
||
|
assert.htmlEqual(target.innerHTML, `
|
||
|
<div>
|
||
|
<span>1</span>
|
||
|
<span>2</span>
|
||
|
<span>3</span>
|
||
|
<span>4</span>
|
||
|
</div>
|
||
|
`);
|
||
|
}
|
||
|
};
|