I am Jasmine unit testing an angular component, which uses Observables. My component has this lifecycle hook that I am testing:
ngOnInit() { this.dataService.ge
Instead of
spyOn(service, 'getCellOEE').and.returnValue({ subscribe: () => { } });
You could try
spyOn(service, 'getCellOEE').and.returnValue( {subscribe: (callback) => callback()});