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

27 lines
401 B

export default {
skip: +/v(\d+)/.exec(process.version)[1] < 8,
html: `
<pre>{"wanted":2}</pre>
`,
test(assert, component, target) {
component.set({
unwanted: 3,
wanted: 4
});
assert.htmlEqual(target.innerHTML, `
<pre>{"wanted":4}</pre>
`);
component.set({
unwanted: 5,
wanted: 6
});
assert.htmlEqual(target.innerHTML, `
<pre>{"wanted":6}</pre>
`);
}
};