I want to call a private method in my component
Private Method:
private test(): void {
return true;
}
Spec It:
it('should call test method and return true', () => {
const response = component.test();
expect(response).toBeTruthy();
});
Issue:
Says: "Property 'test' is private and only accessible within class 'MyTestComponent'."