test(VmTurnZone): provide a stub VmTurnZone for CJS tests
This commit is contained in:
		
							parent
							
								
									d8aeb40b49
								
							
						
					
					
						commit
						94a48e8640
					
				
							
								
								
									
										17
									
								
								modules/angular2/src/core/zone/vm_turn_zone.cjs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								modules/angular2/src/core/zone/vm_turn_zone.cjs
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,17 @@ | |||||||
|  | // TODO(vicb): implement this class properly
 | ||||||
|  | // The current stub implementation is only here to please cjs tests
 | ||||||
|  | export class VmTurnZone { | ||||||
|  |   constructor({enableLongStackTrace}) { | ||||||
|  |   } | ||||||
|  | 
 | ||||||
|  |   initCallbacks({onTurnStart, onTurnDone, onScheduleMicrotask, onErrorHandler} = {}) { | ||||||
|  |   } | ||||||
|  | 
 | ||||||
|  |   run(fn) { | ||||||
|  |     return fn(); | ||||||
|  |   } | ||||||
|  | 
 | ||||||
|  |   runOutsideAngular(fn) { | ||||||
|  |     return fn(); | ||||||
|  |   } | ||||||
|  | } | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user