| 1324 | it('should clear event listeners when node is destroyed', () => { |
| 1325 | let calls = 0; |
| 1326 | @Component({ |
| 1327 | selector: 'cancel-button', |
| 1328 | template: '', |
| 1329 | standalone: false, |
| 1330 | }) |
| 1331 | class CancelButton { |
| 1332 | @Output() cancel = new EventEmitter<void>(); |
| 1333 | } |
| 1334 | |
| 1335 | @Component({ |
| 1336 | template: '<cancel-button *ngIf="visible" (cancel)="cancel()"></cancel-button>', |