Unit testing in Angular – property value not updating

Advertisements I have simple function which shows and hides dropdown menu on click event. Here is HTML code <div (click)="toggleDropdown()" id="game-category">Show/Hide menu</div> <div class="relative"> <app-category *ngIf="isShown" [filtersList]="categories"> </app-category> </div> The function sets an opposite value to the property value of a component. isShown = false; toggleDropdown(): void { this.isShown = !this.isShown; } Everything works fine,… Read More Unit testing in Angular – property value not updating