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

23 lines
263 B

export default {
props: {
a: 3,
b: 4
},
html: `
<p>a: 3</p>
<p>b: 2</p>
`,
async test({ assert, component, target }) {
await component.$set({
a: 5,
b: 6
});
assert.htmlEqual(target.innerHTML, `
<p>a: 5</p>
<p>b: 2</p>
`);
}
};