How to write testcase for @Input property. And check whether some value is present using ngIf directive within ng-container. So how to write test for such scenerio.
Here is my code. Please help me.
ChildComponent.ts
@Input() myInput;
ChildComponent.html
<ng-container *ngIf="myInput?.value1">
- Display some code
</ng-container>
<ng-container *ngIf="myInput?.value2">
- Display some code
</ng-container>
In this code, How can we check if these ngIfs actually works. I really need little clue here in writing test case. Since Angular is new to me.
Thanks a lot