I am trying to gain some percents in code coverage but I cant figure out how to do it. This is part of code where i am getting functions not tested.
init(){
this.subscription.add(someStuff.subscribe(() => this.myPrivateMethod()));
}
private myPrivateMethod() {
...
}
Well now I am getting at least two not tested functions in code coverage.
First one is this () =>
second one is this private myPrivateMethod()
But how can I test it? The first one I have no idea and the second is private.