mirror of https://github.com/sveltejs/svelte
27 lines
382 B
27 lines
382 B
export default {
|
|
data: {
|
|
foo: {
|
|
bar: ['x', 'y', 'z']
|
|
}
|
|
},
|
|
|
|
html: `
|
|
<input>
|
|
<input>
|
|
<input>
|
|
`,
|
|
|
|
test(assert, component, target, window) {
|
|
const inputs = target.querySelectorAll('input');
|
|
|
|
inputs[1].value = 'w';
|
|
inputs[1].dispatchEvent(new window.MouseEvent('input'));
|
|
|
|
assert.deepEqual(component.get(), {
|
|
foo: {
|
|
bar: ['x', 'w', 'z']
|
|
}
|
|
});
|
|
}
|
|
};
|