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

23 lines
296 B

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