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

28 lines
310 B

export default {
props: {
x: 11
},
html: `
before-if-after
`,
test({ assert, component, target }) {
component.x = 4;
assert.htmlEqual(
target.innerHTML,
`
before-elseif-after
`
);
component.x = 6;
assert.htmlEqual(
target.innerHTML,
`
before-else-after
`
);
}
};