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