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

28 lines
378 B

export default {
get props() {
return { 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>
`
);
}
};