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-element-input-each-b.../_config.js

12 lines
331 B

export default {
test({ assert, component, target }) {
const [input1, input2] = target.querySelectorAll('input');
assert.equal(input1.value, 'value1');
assert.equal(input2.value, 'value2');
component.items = component.items.reverse();
assert.equal(input1.value, 'value1');
assert.equal(input2.value, 'value2');
}
};