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.
svelte/test/runtime/samples/whitespace-list/_config.js

23 lines
318 B

export default {
props: {
// so it doesn't use innerHTML
one: 'one',
two: 'two',
three: 'three'
},
html: `
<ul>
<li>one</li>
<li>two</li>
<li>three</li>
</ul>
`,
test({ assert, component, target }) {
const ul = target.querySelector('ul');
assert.equal(ul.childNodes.length, 5);
},
};