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

22 lines
317 B

export default {
props: {
x: 11
},
html: `
<p>x is greater than 10</p>
`,
test({ assert, component, target }) {
component.x = 4;
assert.htmlEqual(target.innerHTML, `
<p>x is less than 5</p>
`);
component.x = 6;
assert.htmlEqual(target.innerHTML, `
<p>x is between 5 and 10</p>
`);
}
};