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

13 lines
262 B

export default {
props: {
visible: false
},
html: '<div><div>before me</div></div>',
test({ assert, component, target }) {
component.visible = true;
assert.htmlEqual(target.innerHTML, '<div><div>i am visible</div><div>before me</div></div>' );
}
};