mirror of https://github.com/sveltejs/svelte
23 lines
359 B
23 lines
359 B
export default {
|
|
html: `
|
|
<ul>
|
|
<li>Gruyere</li>
|
|
<li>Compté</li>
|
|
<li>Beaufort</li>
|
|
<li>Abondance</li>
|
|
</ul>
|
|
`,
|
|
|
|
async test({ assert, component, target }) {
|
|
await component.swap(0, 1);
|
|
|
|
assert.htmlEqual(target.innerHTML, `
|
|
<ul>
|
|
<li>Compté</li>
|
|
<li>Gruyere</li>
|
|
<li>Beaufort</li>
|
|
<li>Abondance</li>
|
|
</ul>
|
|
`);
|
|
}
|
|
}; |