I have a piece of HTML in my component:
<div [ngSwitch]="data.mode" class="data-mode">
<span ngSwitchWhen="mode1">Mode 1 Activated</span>
<span ngSwitchWhen="mode2">Mode 2 Activated</span>
</div>
and I want to test it through karma-jasmine. I can get the root element
const headerMode = fixture.debugElement.query(By.css(".data-mode"));
This returns the root node with 2 child elements but I cannot see which of the two is active.
How do I do this?