export default { get props() { return { foo: 0, bar: 0 }; }, html: `
foo: 0
bar: 0
`, async test({ assert, component, target, window }) { const button = target.querySelector('button'); const click = new window.MouseEvent('click'); await button.dispatchEvent(click); assert.equal(component.foo, 4); assert.equal(component.bar, 2); assert.htmlEqual( target.innerHTML, `foo: 4
bar: 2
` ); } };