export default { html: ` `, async test({ assert, target, window }) { const event = new window.MouseEvent('click'); const buttons = target.querySelectorAll('button'); await buttons[0].dispatchEvent(event); assert.htmlEqual( target.innerHTML, ` ` ); await buttons[1].dispatchEvent(event); assert.htmlEqual( target.innerHTML, ` ` ); // reactive update, reset to 2 await buttons[0].dispatchEvent(event); assert.htmlEqual( target.innerHTML, ` ` ); // bound to main, reset to 2 await buttons[1].dispatchEvent(event); assert.htmlEqual( target.innerHTML, ` ` ); } };