| 56 | withBody('<test-cmp></test-cmp>', async () => { |
| 57 | const log: string[] = []; |
| 58 | @Component({ |
| 59 | selector: 'test-cmp', |
| 60 | template: '', |
| 61 | }) |
| 62 | class Cmp { |
| 63 | constructor(ngZone: NgZone) { |
| 64 | effect(() => { |
| 65 | log.push(Zone.current.name); |
| 66 | }); |
| 67 | |
| 68 | ngZone.runOutsideAngular(() => { |
| 69 | effect(() => { |
| 70 | log.push(Zone.current.name); |
| 71 | }); |
| 72 | }); |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | await bootstrapApplication(Cmp); |
| 77 |