export default { props: { thePromise: new Promise((_) => {}), count: 0 }, html: `

loading...

`, async test({ assert, component, target }) { await (component.thePromise = Promise.resolve(component.Component)); assert.htmlEqual( target.innerHTML, `
Resolved:
count: 0
` ); component.count = 5; assert.htmlEqual( target.innerHTML, `
Resolved:
count: 5
` ); try { await (component.thePromise = Promise.reject(component.Component)); } catch (error) { // ignore } assert.htmlEqual( target.innerHTML, `
Rejected:
count: 5
` ); component.count = 10; assert.htmlEqual( target.innerHTML, `
Rejected:
count: 10
` ); } };