export default { html: `

0

`, async test({ assert, component, target, window }) { const [updateButton1, updateButton2, button] = target.querySelectorAll( 'button' ); const event = new window.MouseEvent('click'); let err = ''; window.addEventListener('error', (e) => { e.preventDefault(); err = e.message; }); await button.dispatchEvent(event); assert.equal(err, '', err); assert.htmlEqual(target.innerHTML, `

0

`); await updateButton1.dispatchEvent(event); await button.dispatchEvent(event); assert.htmlEqual(target.innerHTML, `

1

`); await updateButton2.dispatchEvent(event); await button.dispatchEvent(event); assert.htmlEqual(target.innerHTML, `

2

`); } };