export default { html: `
a: {"foo":3,"bar":2}
b: {"foo":3}
`, skip_if_ssr: true, async test({ assert, component, target, window }) { const [btn1, btn2] = target.querySelectorAll('button'); const click = new window.MouseEvent('click'); await btn1.dispatchEvent(click); assert.htmlEqual(target.innerHTML, `a: {"foo":4,"bar":2}
b: {"foo":4,"baz":0}
`); await btn2.dispatchEvent(click); assert.htmlEqual(target.innerHTML, `a: {"foo":5,"bar":2}
b: {"foo":5,"qux":0}
`); } };