export default {
props: {
name: 'world'
},
html: `
hello world
`, async test({ assert, component, target, window }) { const el = target.querySelector('editor'); assert.equal(el.innerHTML, 'world'); el.innerHTML = 'everybody'; // No updates to data yet assert.htmlEqual(target.innerHTML, `hello world
`); // Handle user input const event = new window.Event('input'); await el.dispatchEvent(event); assert.htmlEqual(target.innerHTML, `hello everybody
`); component.name = 'goodbye'; assert.equal(el.innerHTML, 'goodbye'); assert.htmlEqual(target.innerHTML, `hello goodbye
`); } };