pull/7738/head
Bryan Terce 6 years ago
parent ed64df4094
commit ad827a6db4

@ -0,0 +1,14 @@
export default {
async test({ assert, target, window }) {
const input = target.querySelector('input');
const event = new window.Event('input');
input.value = 'changed';
await input.dispatchEvent(event);
assert.htmlEqual(target.innerHTML, `
<input>
<p>changed</p>
`);
}
};

@ -0,0 +1,13 @@
<script>
import { writable } from 'svelte/store';
const items = writable([
{ id: 0, text: 'inital' }
]);
</script>
{#each $items as item, index}
<input bind:value={item.text}>
{/each}
<p>{$items[0].text}</p>
Loading…
Cancel
Save