let fulfil; const thePromise = new Promise((f) => { fulfil = f; }); const items = [ { title: 'a title', data: thePromise } ]; export default { get props() { return { items }; }, html: `
a title: loading...
`, test({ assert, target }) { fulfil(42); return thePromise.then(() => { assert.htmlEqual( target.innerHTML, `a title: 42
` ); }); } };