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/dynamic-element-template-li.../_config.js

22 lines
318 B

export default {
props: {
size: 1
},
html: '<h1>This is h1 tag</h1>',
test({ assert, component, target }) {
const h1 = target.firstChild;
component.size = 2;
assert.htmlEqual(
target.innerHTML,
`
<h2>This is h2 tag</h2>
`
);
const h2 = target.firstChild;
assert.notEqual(h1, h2);
}
};