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/mutation-tracking-across-si.../_config.js

13 lines
368 B

export default {
async test({ assert, component, target }) {
assert.htmlEqual(component.div.innerHTML, '<div>+</div><div>-</div>');
const event = new window.Event('change');
const input = target.querySelector('input');
input.checked = false;
await input.dispatchEvent(event);
assert.htmlEqual(component.div.innerHTML, '<div>-</div><div>-</div>');
}
};