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.
27 lines
373 B
27 lines
373 B
6 years ago
|
export default {
|
||
|
html: `
|
||
|
<li>
|
||
|
<span>a</span>
|
||
|
<ul>
|
||
|
<li>
|
||
|
<span>a/b</span>
|
||
|
<ul>
|
||
|
<li>a/b/c</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
`,
|
||
|
|
||
|
nestedTransitions: true,
|
||
|
|
||
|
test(assert, component, target, window, raf) {
|
||
|
component.refs.folder.set({ open: false });
|
||
|
assert.htmlEqual(target.innerHTML, `
|
||
|
<li>
|
||
|
<span>a</span>
|
||
|
</li>
|
||
|
`);
|
||
|
},
|
||
|
};
|