mirror of https://github.com/sveltejs/svelte
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.
26 lines
356 B
26 lines
356 B
7 years ago
|
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>
|
||
|
`);
|
||
|
}
|
||
|
};
|