@@ -47,33 +47,33 @@ StartTest(t => {
4747 }
4848 } ) ;
4949
50- t . is ( runCount , 1 , 'Effect function ran once on creation' ) ;
51- t . is ( effect . dependencies . size , 2 , 'Effect tracked 2 dependencies' ) ;
52- t . is ( sum , 11 , 'Effect function ran with correct sum: 1 + 10 = 11' ) ;
50+ t . is ( runCount , 1 , 'Effect function ran once on creation' ) ;
51+ t . is ( effect . dependencies . size , 2 , 'Effect tracked 2 dependencies' ) ;
52+ t . is ( sum , 11 , 'Effect function ran with correct sum: 1 + 10 = 11' ) ;
5353
5454 // Change a dependency, effect should re-run
5555 configA . set ( 2 ) ;
56- t . is ( runCount , 2 , 'Effect function ran again after configA change' ) ;
57- t . is ( sum , 12 , 'Effect function ran with correct sum: 2 + 10 = 12' ) ;
56+ t . is ( runCount , 2 , 'Effect function ran again after configA change' ) ;
57+ t . is ( sum , 12 , 'Effect function ran with correct sum: 2 + 10 = 12' ) ;
5858
5959 // Change another dependency, effect should re-run
6060 configB . set ( 20 ) ;
61- t . is ( runCount , 3 , 'Effect function ran again after configB change' ) ;
62- t . is ( sum , 22 , 'Effect function ran with correct sum: 2 + 20 = 22' ) ;
61+ t . is ( runCount , 3 , 'Effect function ran again after configB change' ) ;
62+ t . is ( sum , 22 , 'Effect function ran with correct sum: 2 + 20 = 22' ) ;
6363
6464 // Change a dependency to the same value, effect should not re-run (Config handles this)
6565 configA . set ( 2 ) ;
66- t . is ( runCount , 3 , 'Effect function did not run after no-change configA update' ) ;
67- t . is ( sum , 22 , 'Effect function ran with correct sum: 2 + 20 = 22' ) ;
66+ t . is ( runCount , 3 , 'Effect function did not run after no-change configA update' ) ;
67+ t . is ( sum , 22 , 'Effect function ran with correct sum: 2 + 20 = 22' ) ;
6868
6969 effect . destroy ( ) ;
70- t . is ( effect . isDestroyed , true , 'Effect is destroyed' ) ;
71- t . is ( effect . dependencies . size , 0 , 'Effect dependencies cleared after destroy' ) ;
70+ t . is ( effect . isDestroyed , true , 'Effect is destroyed' ) ;
71+ t . is ( effect . dependencies . size , 0 , 'Effect dependencies cleared after destroy' ) ;
7272
7373 // Changing config after effect is destroyed should not re-run effect
7474 configA . set ( 3 ) ;
75- t . is ( runCount , 3 , 'Effect function did not run after configA change when destroyed' ) ;
76- t . is ( sum , 22 , 'Effect function ran with correct sum: 2 + 20 = 22' ) ;
75+ t . is ( runCount , 3 , 'Effect function did not run after configA change when destroyed' ) ;
76+ t . is ( sum , 22 , 'Effect function ran with correct sum: 2 + 20 = 22' ) ;
7777 } ) ;
7878
7979 t . it ( 'Effect should clean up old dependencies on re-run' , t => {
@@ -89,7 +89,7 @@ StartTest(t => {
8989 }
9090 } ) ;
9191
92- t . is ( runCount , 1 , 'Effect ran once initially' ) ;
92+ t . is ( runCount , 1 , 'Effect ran once initially' ) ;
9393 t . is ( effect . dependencies . size , 1 , 'Effect has 1 dependency (configX)' ) ;
9494
9595 // --- Transition to configY dependency ---
@@ -115,7 +115,7 @@ StartTest(t => {
115115 // Changing the config value will trigger a re-run.
116116 configY . set ( 'Y_new' ) ;
117117
118- t . is ( runCount , 3 , 'Effect ran a second time after fn reassignment' ) ;
118+ t . is ( runCount , 3 , 'Effect ran a second time after fn reassignment' ) ;
119119 t . is ( effect . dependencies . size , 1 , 'Effect now has 1 dependency (configY)' ) ;
120120
121121 // Change configX: should NOT trigger the effect (old dependency cleaned up)
0 commit comments