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

19 lines
319 B

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