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
359 B

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