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-nested-in-slot/_config.js

19 lines
346 B

export default {
html: `
<p slot='one'>one: 1 two: 2</p>
`,
test({ assert, component, target }) {
component.a = 3;
component.b = 4;
assert.htmlEqual(target.innerHTML, `
<p slot='one'>one: 3 two: 4</p>
`);
component.a = 5;
component.b = 6;
assert.htmlEqual(target.innerHTML, `
<p slot='one'>one: 5 two: 6</p>
`);
}
};