MCPcopy Create free account
hub / github.com/angular/angular / TestComponent

Class TestComponent

packages/core/test/acceptance/animation_spec.ts:100–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98 it('should delay element removal when an animation is specified', async () => {
99 const logSpy = jasmine.createSpy('logSpy');
100 @Component({
101 selector: 'test-cmp',
102 styles: styles,
103 template:
104 '<div>@if (show()) {<p animate.leave="fade" (animationend)="logMe($event)">I should fade</p>}</div>',
105 encapsulation: ViewEncapsulation.None,
106 })
107 class TestComponent {
108 show = signal(true);
109
110 logMe(event: AnimationEvent) {
111 logSpy();
112 }
113 }
114
115 TestBed.configureTestingModule({animationsEnabled: true});
116

Callers

nothing calls this directly

Calls 7

ComponentInterface · 0.90
signalFunction · 0.90
injectFunction · 0.90
computedFunction · 0.90
removeMethod · 0.65
addMethod · 0.65
sliceMethod · 0.65

Tested by

no test coverage detected