I am trying to write unit test for a component that extends a base class.
component.ts
export class DesktopPresentationAreaComponent extends AbstractPresentationComponent {
constructor() {
super(store, webcast);
}
}
base class
export abstract class AbstractPresentationComponent {
constructor(protected store: MainStorageService,
protected webcast: WebcastService) {
this.store.get('state').subscribe();
}
when I run 'ng test' it shows following error.
TypeError: Cannot read property 'subscribe' of undefined in AbstractPresentationComponent
how can I solve this issue?