export default { html: `

on: 1

`, async test({ assert, component, target, window }) { const buttons = target.querySelectorAll('button'); const event = new window.MouseEvent('click'); await buttons[0].dispatchEvent(event); assert.htmlEqual( target.innerHTML, `

on: 2

` ); await buttons[2].dispatchEvent(event); assert.htmlEqual( target.innerHTML, `

on: 3

` ); assert.deepEqual(component.switches, [{ on: true }, { on: true }, { on: true }]); } };