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