X-Git-Url: https://juplo.de/gitweb/?p=examples%2Fangular-tour-of-heroes;a=blobdiff_plain;f=src%2Fapp%2Fhero.service.spec.ts;fp=src%2Fapp%2Fhero.service.spec.ts;h=08364db2fdbf0da5b3612036f548d49ee0df5949;hp=7730d9fc6cce64d449d53141c3c4c881a6f0bf8a;hb=c2ce800fc99390d95d4cfcce93f597490f6a948b;hpb=2221767df6737334e1a4c69b46722bb842f94823 diff --git a/src/app/hero.service.spec.ts b/src/app/hero.service.spec.ts index 7730d9f..08364db 100644 --- a/src/app/hero.service.spec.ts +++ b/src/app/hero.service.spec.ts @@ -8,17 +8,14 @@ import { Hero } from './hero'; 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(() => {