export default { data: { items: [], selected: null }, html: `
selected: nothing
`, test ( assert, component, target ) { component.set({ items: [ 'one', 'two', 'three' ], selected: 'two' }); const options = target.querySelectorAll( 'option' ); assert.ok( !options[0].selected ); assert.ok( options[1].selected ); assert.ok( !options[2].selected ); assert.htmlEqual( target.innerHTML, `selected: two
` ); component.destroy(); } };