export default { html: `
field1: 1
field2: 2
`, test(assert, component, target, window) { let triggered = false; component.refs.nested.observe('field2', () => { triggered = true; }, { init: false }); 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
`); } };