0

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;
}
user1015388
  • 1,283
  • 4
  • 25
  • 45

0 Answers0