export default { html: `

0

`, async test({ assert, target, window }) { const [toggle, handler_a, handler_b] = target.querySelectorAll('button'); const p = target.querySelector('p'); const event = new window.MouseEvent('click'); await handler_a.dispatchEvent(event); assert.equal(p.innerHTML, '1'); await toggle.dispatchEvent(event); await handler_a.dispatchEvent(event); assert.equal(p.innerHTML, '2'); await toggle.dispatchEvent(event); await handler_b.dispatchEvent(event); assert.equal(p.innerHTML, '1'); await toggle.dispatchEvent(event); await handler_b.dispatchEvent(event); assert.equal(p.innerHTML, '2'); } };