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.
20 lines
304 B
20 lines
304 B
6 years ago
|
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>
|
||
|
`);
|
||
|
}
|
||
|
};
|