export default { data: { items: [ 'foo', 'bar', 'baz' ], selected: 'foo' }, html: `
selected: foo
`, test ( assert, component, target, window ) { const buttons = target.querySelectorAll( 'button' ); const event = new window.MouseEvent( 'click' ); buttons[1].dispatchEvent( event ); assert.htmlEqual( target.innerHTML, `selected: bar
` ); component.destroy(); } };