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/each-block-keyed-siblings/_config.js

21 lines
286 B

export default {
props: {
ones: [{ text: '1' }],
twos: [{ text: '2' }]
},
html: `
<div>1</div>
<div>2</div>
`,
test({ assert, component, target }) {
component.ones = [{ text: '11' }];
assert.htmlEqual(target.innerHTML, `
<div>11</div>
<div>2</div>
`);
}
};