| 161 | |
| 162 | it('should flush and fire callbacks when the zone becomes stable', (async) => { |
| 163 | @Component({ |
| 164 | selector: 'my-cmp', |
| 165 | template: '<div [@myAnimation]="exp" (@myAnimation.start)="onStart($event)"></div>', |
| 166 | animations: [ |
| 167 | trigger('myAnimation', [ |
| 168 | transition('* => state', [ |
| 169 | style({'opacity': '0'}), |
| 170 | animate(500, style({'opacity': '1'})), |
| 171 | ]), |
| 172 | ]), |
| 173 | ], |
| 174 | standalone: false, |
| 175 | }) |
| 176 | class Cmp { |
| 177 | exp: any; |
| 178 | event: any; |
| 179 | onStart(event: any) { |
| 180 | this.event = event; |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | TestBed.configureTestingModule({ |
| 185 | providers: [{provide: AnimationEngine, useClass: InjectableAnimationEngine}], |
nothing calls this directly
no test coverage detected