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-destruct-rest/_config.js

22 lines
354 B

export default {
async test({ assert, component, target }) {
await Promise.resolve();
assert.htmlEqual(
target.innerHTML,
`
<p>a: 1</p>
<p>rest: {"b":2,"c":3}</p>
<p>a: 1</p>
<p>b: 2</p>
<p>rest: [3,4,5,6]</p>
<p>a: 1</p>
<p>rest: {"b":2,"c":3}</p>
<p>a: 1</p>
<p>b: 2</p>
<p>rest: [3,4,5,6]</p>
`
);
}
};