Angular - Testing
Given this test code snippet, what will be the value of
Assuming the button click increments
component.count after the click event?const fixture = TestBed.createComponent(CounterComponent);
const component = fixture.componentInstance;
fixture.detectChanges();
const button = fixture.debugElement.query(By.css('button'));
button.triggerEventHandler('click', null);
fixture.detectChanges();Assuming the button click increments
count by 1 starting from 0.