export default { data: { items: ['one', 'two', 'three'], }, html: `

one

two

three

`, ssrHtml: `

one

two

three

`, test(assert, component, target, window) { const inputs = [...target.querySelectorAll('input')]; const items = component.get().items; const event = new window.Event('input'); assert.equal(inputs[0].value, 'one'); inputs[1].value = 'four'; inputs[1].dispatchEvent(event); assert.equal(items[1], 'four'); assert.htmlEqual(target.innerHTML, `

one

four

three

`); items[2] = 'five'; component.set({ items }); assert.equal(inputs[2].value, 'five'); assert.htmlEqual(target.innerHTML, `

one

four

five

`); }, };