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/component-slot-static-and-d.../_config.js

20 lines
304 B

export default {
html: `
<div>
<span slot="a">static</span>
<span slot="b">0</span>
</div>
`,
test({ assert, component, target }) {
component.dynamic += 1;
assert.htmlEqual(target.innerHTML, `
<div>
<span slot="a">static</span>
<span slot="b">1</span>
</div>
`);
}
};