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

17 lines
291 B

export default {
html: `
<p>1 + 2 = 3</p>
<p>3 * 3 = 9</p>
`,
test({ assert, component, target }) {
component.a = 3;
assert.equal(component.c, 5);
assert.equal(component.cSquared, 25);
assert.htmlEqual(target.innerHTML, `
<p>3 + 2 = 5</p>
<p>5 * 5 = 25</p>
`);
}
};