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/reactive-statement-indirect/_config.js

15 lines
288 B

export default {
html: `
<h1>2</h1>
<button>Increment</button>
`,
async test({ assert, target }) {
await target.querySelector('button').dispatchEvent(new window.MouseEvent('click'));
assert.htmlEqual(target.innerHTML, `
<h1>4</h1>
<button>Increment</button>
`);
}
};