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