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-scope-shadow-self/_config.js

14 lines
439 B

export default {
async test({ assert, component, target }) {
assert.equal(target.querySelectorAll('input').length, 3);
const input = target.querySelector('input');
input.value = 'svelte';
await input.dispatchEvent(new window.Event('input'));
assert.equal(target.querySelectorAll('input').length, 3);
assert.deepEqual(component.data, { a: 'svelte', b: 'B', c: 'C' });
assert.deepEqual(component.x, ['a', 'b', 'c']);
},
};