I am a beginner in programming and I have been tasked with performing unit testing in Angular for the first time. I am feeling a bit confused... I need to test the following method in my component.ts:
isInputHidden = true;
showInput(){this.isInputHidden = false;}
spec.ts :
it('should show the input', () => {
component.isInputHidden == false;
let showInput = component.showInput();
expect(showInput).toBe(true);
})
When I run this test, I encounter these errors: In jasmine ==> Expect undefined to equal true. In Terminal ==> Argument of type 'true' is not assignable to parameter of type 'Expected'. Can someone assist me in understanding what I should modify?