mirror of https://github.com/sveltejs/svelte
parent
b3f009122b
commit
28e145e96d
@ -0,0 +1,22 @@
|
||||
export default {
|
||||
data: {
|
||||
// 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);
|
||||
},
|
||||
};
|
@ -0,0 +1,5 @@
|
||||
<ul>
|
||||
<li>{one}</li>
|
||||
<li>{two}</li>
|
||||
<li>{three}</li>
|
||||
</ul>
|
Loading…
Reference in new issue