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/action-ternary-template/_config.js

21 lines
343 B

export default {
props: {
target: 'World!',
display: true
},
html: `
<h1></h1>
`,
async test({ assert, target, window }) {
const header = target.querySelector('h1');
const click = new window.MouseEvent('click');
await header.dispatchEvent(click);
assert.htmlEqual(target.innerHTML, `
<h1>Hello World!</h1>
`);
}
};