File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
packages/svelte/test/runtime/samples/binding-backflow Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 66 value = { foo: ' kid' }
77 }
88
9+ if (testcase === ' init_mutate' ) {
10+ value .foo = ' kid'
11+ }
12+
913 $: if (testcase === ' reactive_update' ) {
1014 value = { foo: ' kid' }
1115 }
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ export default {
66 { testcase : 'child_default_populate_parent' , value : undefined } ,
77 { testcase : 'reactive_update' , value : { foo : 'mon' } } ,
88 { testcase : 'reactive_mutate' , value : { foo : 'mon' } } ,
9- { testcase : 'init_update' , value : { foo : 'mon' } }
9+ { testcase : 'init_update' , value : { foo : 'mon' } } ,
10+ { testcase : 'init_mutate' , value : { foo : 'mon' } }
1011 ]
1112 } ;
1213 } ,
@@ -36,5 +37,9 @@ export default {
3637 p = parents [ 'init_update' ] ;
3738 assert . deepEqual ( p . value , { foo : 'kid' } ) ;
3839 assert . equal ( p . updates . length , 2 ) ;
40+
41+ p = parents [ 'init_mutate' ] ;
42+ assert . deepEqual ( p . value , { foo : 'kid' } ) ;
43+ assert . equal ( p . updates . length , 2 ) ;
3944 }
4045} ;
You can’t perform that action at this time.
0 commit comments