You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/runtime/samples/await-then-catch-non-promise/_config.js

21 lines
339 B

export default {
get props() {
return { thePromise: 'not actually a promise' };
},
html: `
<p>the value is not actually a promise</p>
`,
test({ assert, component, target }) {
component.thePromise = 'still not a promise';
assert.htmlEqual(
target.innerHTML,
`
<p>the value is still not a promise</p>
`
);
}
};