Record everything an @Output (or any subscribable, e.g. an EventEmitter/Observable) emits into an array, for direct assertion. Pass the emitter itself — typed, no string names, no vi dependency.
@Output
vi
const clicks = capture(fixture.componentInstance.Clicked);click(fixture, 'button');expect(clicks).toEqual([true]); Copy
const clicks = capture(fixture.componentInstance.Clicked);click(fixture, 'button');expect(clicks).toEqual([true]);
Record everything an
@Output(or any subscribable, e.g. an EventEmitter/Observable) emits into an array, for direct assertion. Pass the emitter itself — typed, no string names, novidependency.