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/reactive-values-implicit-de.../_config.js

26 lines
372 B

export default {
props: {
coords: [0, 0],
numbers: { answer: 42 }
},
html: `
<p>0,0</p>
<p>42</p>
`,
test({ assert, component, target }) {
component.coords = [1, 2];
assert.htmlEqual(target.innerHTML, `
<p>1,2</p>
<p>42</p>
`);
component.numbers = { answer: 43 };
assert.htmlEqual(target.innerHTML, `
<p>1,2</p>
<p>43</p>
`);
}
};