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

22 lines
280 B

export default {
data: { a: 1 },
html: `
<p>a: 1</p>
<p>x: 2</p>
<p>y: 4</p>
<p>z: 8</p>
`,
test(assert, component, target) {
component.set({ a: 2 });
assert.htmlEqual(target.innerHTML, `
<p>a: 2</p>
<p>x: 4</p>
<p>y: 8</p>
<p>z: 16</p>
`)
},
};