mirror of https://github.com/sveltejs/svelte
14 lines
362 B
14 lines
362 B
export default {
|
|
props: {
|
|
titles: [{ name: 'a' }, { name: 'b' }, { name: 'c' }]
|
|
},
|
|
|
|
html: '<div class="container"><p>a</p><p>b</p><p>c</p></div>',
|
|
|
|
test({ assert, component, target }) {
|
|
component.titles = [{ name: 'b' }, { name: 'c' }, { name: 'a' }];
|
|
|
|
assert.htmlEqual(target.innerHTML, '<div class="container"><p>b</p><p>c</p><p>a</p></div>');
|
|
}
|
|
};
|