What is the most effective approach to testing a function that returns an observable with the tap operator?
operations(numbers): Observable{
const sumValue = numbers[0]+numbers[1]
return sumService.getOperations(sumValue).pipe(tap(randomOperationValue => {this.value = randomOperationValue}
))
}
I am facing difficulty in testing the value inside the tap operator. I attempted to mock getOperations() but was unsuccessful.