export default { props: { animals: [ 'alpaca', 'baboon', 'capybara' ] }, html: `

alpaca

baboon

capybara

`, test({ assert, component, target }) { component.animals = []; assert.htmlEqual( target.innerHTML, `

no animals

` ); // trigger an 'update' of the else block, to ensure that // non-existent update method is not called component.animals = []; component.animals = ['wombat']; assert.htmlEqual( target.innerHTML, `

wombat

` ); component.animals = ['dinosaur']; assert.htmlEqual( target.innerHTML, `

dinosaur

` ); } };