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/each-block-component-no-props/_config.js

17 lines
318 B

export default {
html: `
<p>hello</p>
`,
async test({ assert, component, target }) {
await component.remove();
assert.htmlEqual(target.innerHTML, ``);
await component.add();
assert.htmlEqual(target.innerHTML, `<p>hello</p>`);
await component.remove();
assert.htmlEqual(target.innerHTML, ``);
}
};