export default { html: `

field1: 1

field2: 2

`, ssrHtml: `

field1: 1

field2: 2

`, test(assert, component, target, window) { let triggered = false; component.refs.nested.on('state', ({ changed }) => { if (changed.field2) triggered = true; }); const input = target.querySelector('input'); const event = new window.Event('input'); input.value = 3; input.dispatchEvent(event); // will throw error if observer fires incorrectly assert.ok(!triggered); assert.htmlEqual(target.innerHTML, `

field1: 3

field2: 2

`); } };