I'm now to angular and have just completed my first implementation of angular inheritance.
I need to write a test case for the subclass where I cam assign value to protected variable (coming from base class ). This will help me test functionalities in the subclass.
Can someone please provide an example of how this spec.ts file can be written.
I'm wondering how the protected property can be accessed in the spec file of the subclass component.
You need to access the property using the following syntax, please find below working example!
component
test cases
stackblitz