File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed 
documentation/docs/07-misc Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -129,12 +129,12 @@ test('Effect', () => {
129129		//  effects normally run after a microtask,
130130		//  use flushSync to execute all pending effects synchronously
131131		flushSync ();
132- 		expect (log . value ).toEqual ([0 ]);
132+ 		expect (log).toEqual ([0 ]);
133133
134134		count =  1 ;
135135		flushSync ();
136136
137- 		expect (log . value ).toEqual ([0 , 1 ]);
137+ 		expect (log).toEqual ([0 , 1 ]);
138138	});
139139
140140	cleanup ();
@@ -148,17 +148,13 @@ test('Effect', () => {
148148 */  
149149export  function  logger (getValue ) {
150150	/**  @type  {any[]}  */ 
151- 	let  log =  $state ([]) ;
151+ 	let  log =  [] ;
152152
153153	$effect (() =>  {
154154		log .push (getValue ());
155155	});
156156
157- 	return  {
158- 		get  value () {
159- 			return  log;
160- 		}
161- 	};
157+ 	return  log;
162158}
163159``` 
164160
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments