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

18 lines
312 B

export default {
props: {
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>
`);
}
};