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/spread-reuse-levels/_config.js

21 lines
373 B

export default {
html: `
<pre>{"a":1,"b":[1],"c":42}</pre>
<pre>{"a":false,"b":false,"c":false}</pre>
`,
ssrHtml: `
<pre>{"a":1,"b":[1],"c":42}</pre>
<pre>{}</pre>
`,
test({ assert, component, target }) {
component.a = 2;
assert.htmlEqual(target.innerHTML, `
<pre>{"a":2,"b":[1],"c":42}</pre>
<pre>{"a":true,"b":false,"c":false}</pre>
`);
}
};