pull/6219/head
Lyu Jason 5 years ago
parent 6ef44d0f42
commit b4b68c3c48

@ -1,6 +1,6 @@
export default { export default {
props: { props: {
thePromise: new Promise((_) => {}), thePromise: new Promise((_) => {})
}, },
html: ` html: `
@ -8,7 +8,7 @@ export default {
`, `,
async test({ assert, component, target }) { async test({ assert, component, target }) {
await (component.thePromise = Promise.resolve("abc")); await (component.thePromise = Promise.resolve('abc'));
assert.htmlEqual( assert.htmlEqual(
target.innerHTML, target.innerHTML,
@ -33,7 +33,7 @@ export default {
); );
try { try {
await (component.thePromise = Promise.reject("failure")); await (component.thePromise = Promise.reject('failure'));
} catch (error) { } catch (error) {
// ignore // ignore
} }
@ -47,5 +47,5 @@ export default {
</div> </div>
` `
); );
}, }
}; };

Loading…
Cancel
Save