export default { data: { words: ['foo', 'bar', 'baz'] }, html: `

foo

bar

baz

`, test(assert, component, target) { const [p1, p2, p3] = target.querySelectorAll('p'); component.set({ words: ['foo', 'baz'], }); assert.htmlEqual(target.innerHTML, `

foo

baz

`); const [p4, p5] = target.querySelectorAll('p'); assert.ok(!target.contains(p2), '

element should be removed'); assert.equal(p1, p4, 'first

element should be retained'); assert.equal(p3, p5, 'last

element should be retained'); }, };