export default { html: `
hello world
`, ssrHtml: `hello world
`, async test({ assert, component, target, window }) { const input = target.querySelector('input'); assert.equal(input.value, 'world'); const event = new window.Event('input'); const names = []; const unsubscribe = component.user.subscribe(user => { names.push(user.name); }); input.value = 'everybody'; await input.dispatchEvent(event); assert.htmlEqual(target.innerHTML, `hello everybody
`); await component.user.set({ name: 'goodbye' }); assert.equal(input.value, 'goodbye'); assert.htmlEqual(target.innerHTML, `hello goodbye
`); assert.deepEqual(names, ['world', 'everybody', 'goodbye']); unsubscribe(); }, };