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

20 lines
272 B

export default {
html: `
<p>count: 0</p>
`,
test({ assert, component, target }) {
component.count = 5;
assert.htmlEqual(target.innerHTML, `
<p>count: 5</p>
`);
component.count = 50;
assert.htmlEqual(target.innerHTML, `
<p>count: 9</p>
`);
}
};