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
356 B

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