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/select-bind-in-array/_config.js

17 lines
257 B

const items = [ { id: 'a' }, { id: 'b' } ];
export default {
skip_if_ssr: true,
props: {
items
},
test({ assert, component, target }) {
const items = component.items;
assert.equal( items[0].id, 'a' );
assert.equal( items[1].id, 'b' );
}
};