import * as assert from 'assert'; export default { data: { name: 'world' }, html: `\n

hello world

`, test ( component, target, window ) { const input = target.querySelector( 'input' ); assert.equal( input.value, 'world' ); const event = new window.Event( 'input' ); input.value = 'everybody'; input.dispatchEvent( event ); assert.equal( target.innerHTML, `\n

hello everybody

` ); component.set({ name: 'goodbye' }); assert.equal( input.value, 'goodbye' ); assert.equal( target.innerHTML, `\n

hello goodbye

` ); } };