export default { props: { thePromise: Promise.resolve({ result: 1 }) }, html: '', async test({ assert, component, target }) { await (component.thePromise = Promise.resolve({ result: 1 })); assert.htmlEqual( target.innerHTML, `
result: 1
count: 0
` ); await new Promise(resolve => setTimeout(resolve, 1)); assert.htmlEqual( target.innerHTML, `result: 1
count: 1
` ); } };