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

14 lines
337 B

export default {
props: {
dummy: false,
fruits: ['Apple', 'Banana', 'Tomato'],
},
html: '<div><div>Apple</div><div>Banana</div><div>Tomato</div></div>',
test({ assert, component, target }) {
component.dummy = true;
assert.htmlEqual(target.innerHTML, '<div><div>Apple</div><div>Banana</div><div>Tomato</div></div>' );
}
};