| 451 | |
| 452 | describe('with animations', () => { |
| 453 | @Component({ |
| 454 | selector: 'hello-app', |
| 455 | template: |
| 456 | '<div @myAnimation (@myAnimation.start)="onStart($event)">Hello from AnimationCmp!</div>', |
| 457 | animations: [ |
| 458 | trigger('myAnimation', [transition('void => *', [style({opacity: 1}), animate(5)])]), |
| 459 | ], |
| 460 | }) |
| 461 | class AnimationCmp { |
| 462 | renderer = _inject(ANIMATION_MODULE_TYPE, {optional: true}) ?? 'not found'; |
| 463 | startEvent?: {}; |
| 464 | |
| 465 | onStart(event: {}) { |
| 466 | this.startEvent = event; |
| 467 | } |
| 468 | } |
| 469 | |
| 470 | it('should enable animations when using provideAnimations()', async () => { |
| 471 | const appRef = await bootstrapApplication(AnimationCmp, { |
nothing calls this directly
no test coverage detected
searching dependent graphs…