export default { props: { people: [{ name: { first: 'Doctor', last: 'Who' } }], }, html: `

Doctor Who

`, ssrHtml: `

Doctor Who

`, async test({ assert, component, target, window }) { const inputs = target.querySelectorAll('input'); inputs[1].value = 'Oz'; await inputs[1].dispatchEvent(new window.Event('input')); const { people } = component; assert.deepEqual(people, [ { name: { first: 'Doctor', last: 'Oz' } } ]); assert.htmlEqual(target.innerHTML, `

Doctor Oz

`); people[0].name.first = 'Frank'; component.people = people; assert.htmlEqual(target.innerHTML, `

Frank Oz

`); }, };