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/computed-whole-state/_config.js

26 lines
354 B

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