I am trying to mock viewchild in my angular test cases. I tried to use fixture.componentInstance, it doesn't work. How to mock @ViewChild in angular 4 test cases.
export class AA{
@ViewChild('view') testView;
}
I am trying to mock viewchild in my angular test cases. I tried to use fixture.componentInstance, it doesn't work. How to mock @ViewChild in angular 4 test cases.
export class AA{
@ViewChild('view') testView;
}