export default { data: { value: 'some text' }, html: `
some text
`, test ( assert, component, target, window ) { const textarea = target.querySelector( 'textarea' ); assert.equal( textarea.value, 'some text' ); const event = new window.Event( 'input' ); textarea.value = 'hello'; textarea.dispatchEvent( event ); assert.htmlEqual( target.innerHTML, `hello
` ); component.set({ value: 'goodbye' }); assert.equal( textarea.value, 'goodbye' ); assert.htmlEqual( target.innerHTML, `goodbye
` ); } };