e2e testing angular 7: Failed: Cannot read property 'fetchData' of undefined
I'm trying to do some e2e testing for my service in angular 7, the method return Observable, this is my methode: import { Injectable } from '@angular/core'; import { UrlDecoratorService } from "../../common/url-decorator.service"; import { APIFetcherService } from "../common/api-fetcher.service"; import { Observable } from 'rxjs'; import { IALChrono, ALChrono } from '../../common/IALChrono.interface'; @Injectable() export class AnnonceChronoDetailService { private months: string[]; constructor(private urlDecoratorService: UrlDecoratorService, private apiFetcher: APIFetcherService) { }