export default {
html: `
1
0
`,
async test({ assert, target, component, window }) {
component.x = 2;
assert.htmlEqual(target.innerHTML, `
2
0
`);
const span = target.querySelector('span');
await span.dispatchEvent(new window.MouseEvent('click'));
assert.htmlEqual(target.innerHTML, `
2
2
`);
}
};