import { writable } from '../../../../store'; const c = writable(0); export default { props: { c }, html: `
a: 0
b: 0
c: 0
`, async test({ assert, component, target, window }) { const button = target.querySelector('button'); const click = new window.MouseEvent('click'); await button.dispatchEvent(click); assert.htmlEqual(target.innerHTML, `a: 1
b: 1
c: 1
`); await component.c.set(42); assert.htmlEqual(target.innerHTML, `a: 42
b: 42
c: 42
`); } };