export default { skip_if_ssr: true, // TODO delete this line, once binding works html: `
count: 0
`, async test({ assert, component, target, window }) { const click = new window.MouseEvent('click'); const button = target.querySelector('button'); await button.dispatchEvent(click); assert.equal(component.x, 1); assert.htmlEqual(target.innerHTML, `count: 1
`); await button.dispatchEvent(click); assert.equal(component.x, 2); assert.htmlEqual(target.innerHTML, `count: 2
`); } };