I have the following code
this.myEvent.emit(new MyModel({prop1: true, prop2: 'someString', someOtherProps...}))
In jasmine I have
const spy = spyOn(component.myEvent, 'emit');
How can I check that myEvent
has emitted an object with property prop1 = true
?