export default { html: `

fromDom:

fromState:

`, test ( assert, component, target, window ) { const event = new window.MouseEvent( 'click' ); const buttons = target.querySelectorAll( 'button' ); buttons[1].dispatchEvent( event ); assert.htmlEqual( target.innerHTML, `

fromDom: bar

fromState: bar

` ); assert.equal( component.get( 'fromDom' ), 'bar' ); assert.equal( component.get( 'fromState' ), 'bar' ); component.destroy(); } };