I am writing unit test cases for angular 6 component, I have below code which is getting error, I almost covered 65% code coverage but this is annoying me and I dont know how to cover pipe in unit test cases.
TypeError: this.threadData.pipe is not a function
On below line :
this.subscriptions.add(
this.msgDataService.pipe(first()).subscribe((data: any) => {
}
I was trying below but don't know if this is a solution or not. Angular testing - observable pipe is not a function
Thanks