export default { props: { todos: [ { description: 'implement keyed each blocks' }, { description: 'implement client-side hydration' } ] }, html: `

1: implement keyed each blocks

2: implement client-side hydration

`, test({ assert, component, target }) { const [p1, p2] = target.querySelectorAll('p'); component.todos = [component.todos[1]]; assert.htmlEqual(target.innerHTML, '

1: implement client-side hydration

'); const [p3] = target.querySelectorAll('p'); assert.ok(!target.contains(p1), 'first

element should be removed'); assert.equal(p2, p3, 'second

element should be retained'); } };