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/svg-each-block-anchor/_config.js

26 lines
353 B

export default {
props: {
foo: ['a'],
bar: ['c']
},
html: `
<svg>
<g class='foo'>a</g>
<g class='bar'>c</g>
</svg>
`,
test({ assert, component, target }) {
component.foo = ['a', 'b'];
assert.htmlEqual(target.innerHTML, `
<svg>
<g class='foo'>a</g>
<g class='foo'>b</g>
<g class='bar'>c</g>
</svg>
`);
}
};