failing test for #1240

pull/1243/head
Rich Harris 7 years ago
parent ef1e2d0c06
commit 6f65554c93

@ -0,0 +1,26 @@
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']
}
});
}
};

@ -0,0 +1,3 @@
{{#each foo.bar as bar}}
<input bind:value='bar'>
{{/each}}
Loading…
Cancel
Save