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/nested-transition-detach-if.../_config.js

27 lines
373 B

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>
`);
},
};