mirror of https://github.com/sveltejs/svelte
17 lines
311 B
17 lines
311 B
export default {
|
|
html: `
|
|
<div>
|
|
<button>click me</button>
|
|
</div>
|
|
`,
|
|
|
|
async test({ assert, component, target, window }) {
|
|
const button = target.querySelector('button');
|
|
const event = new window.MouseEvent('click');
|
|
|
|
await button.dispatchEvent(event);
|
|
|
|
assert.ok(!component.inner_clicked);
|
|
}
|
|
};
|