export default { test({ assert, component, target }) { const promise = Promise.resolve().then(() => { component.answer = 42; }); component.promise = promise; assert.htmlEqual(target.innerHTML, '
wait for it...
'); return promise .then(() => { assert.htmlEqual(target.innerHTML, `the answer is 42!
`); }); } };