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/spread-each-component/_config.js

25 lines
408 B

export default {
html: `
<div data-a="1" data-b="2"></div>
<div data-a="3" data-b="4"></div>
`,
props: {
things: [
{ a: 1, b: 2 },
{ a: 3, b: 4 }
]
},
test({ assert, component, target }) {
const { things } = component;
component.things = things.reverse();
assert.htmlEqual(target.innerHTML, `
<div data-a="3" data-b="4"></div>
<div data-a="1" data-b="2"></div>
`);
}
};