I need to test the property of the method in jest. My test is passing but test coverage is not increasing.
How test the property of methods?
component.ts
onClickExpanding() {
this.ownerName = this.getControl();
this.quest.parent.children.forEach(c=> c.Grp = false);
this.quest.Grp = true;
}
TestCase
it('onClickExpandingtest all property', () => {
copoment.quest.Grp= true;
expect(component.onClickExpanding).toBeTruthy();
});