mirror of https://github.com/sveltejs/svelte
parent
8180c5dd6c
commit
8ca9541391
@ -0,0 +1,5 @@
|
|||||||
|
<script>
|
||||||
|
export let value;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{value}
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
export default {
|
||||||
|
async test({ assert, component }) {
|
||||||
|
assert.equal(component.object_updates, 1);
|
||||||
|
},
|
||||||
|
};
|
||||||
@ -0,0 +1,10 @@
|
|||||||
|
<script>
|
||||||
|
import Component from "./Component.svelte";
|
||||||
|
|
||||||
|
export let object_updates = 0;
|
||||||
|
|
||||||
|
let arr = [""];
|
||||||
|
$: if (arr) object_updates++;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<Component bind:value={arr[0]} />
|
||||||
Loading…
Reference in new issue