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.
25 lines
375 B
25 lines
375 B
8 years ago
|
export default {
|
||
|
data: {
|
||
|
a: [{ id: 'foo' }, { id: 'bar' }, { id: 'baz' }]
|
||
|
},
|
||
|
|
||
|
html: `
|
||
|
<span>foo</span><span>bar</span><span>baz</span>
|
||
|
`,
|
||
|
|
||
|
test ( assert, component, target ) {
|
||
|
component.set({
|
||
|
a: [
|
||
|
{ id: 'yep' },
|
||
|
{ id: 'nope' }
|
||
|
]
|
||
|
});
|
||
|
|
||
|
assert.htmlEqual( target.innerHTML, `
|
||
|
<span>yep</span><span>nope</span>
|
||
|
` );
|
||
|
|
||
|
component.destroy();
|
||
|
}
|
||
|
};
|