describe('HeroService', () => {
let service: HeroService;
let httpTestingController: HttpTestingController;
- let scheduler: TestScheduler;
beforeEach(() => {
TestBed.configureTestingModule({
- imports: [ HttpClientTestingModule ]
+ imports: [ HttpClientTestingModule ],
+ providers: [ HeroService ]
});
service = TestBed.inject(HeroService);
httpTestingController = TestBed.inject(HttpTestingController);
- scheduler = new TestScheduler(((actual, expected) => {
- expect(actual).toEqual(expected);
- }));
});
afterEach(() => {