I have the following situation. I have an Observable, myObservable$ initialized in ngOnInit. When that happens, the observable is tapped to copy the last value for other purposes. Aside from that, the observable is bound to something my html using the async pipe. How can I test that my tapped function is happening correctly, using jasmine karma?
html:
<input [ngModel]="myObservable$ |async">
ts:
ngOnInit():void {
this.myObservable$ = this.service.getThings()
.pipe(tap(value=>this.otherProperty=value))
}
I want to test, in this instance, that this.otherProperty actually has the value. How can I test this?
