LiliyaStefanova / reading-tracker

Reading tracker - help manage and make the most of anything you read
0 stars 0 forks source link

API unit test fails due to no provider for HttpTestController #1

Open LiliyaStefanova opened 5 years ago

LiliyaStefanova commented 5 years ago

Error: StaticInjectorError[HttpTestingController]: NullInjectorError: No provider for HttpTestingController! Error: StaticInjectorError[HttpTestingController]: NullInjectorError: No provider for HttpTestingController! at NullInjector.push../node_modules/@angular/core/fesm5/core.js.NullInjector.get (http://localhost:9877/node_modules/@angular/core/fesm5/core.js?:3228:1) at resolveToken (http://localhost:9877/node_modules/@angular/core/fesm5/core.js?:3473:1) at tryResolveToken (http://localhost:9877/node_modules/@angular/core/fesm5/core.js?:3417:1) at StaticInjector.push../node_modules/@angular/core/fesm5/core.js.StaticInjector.get (http://localhost:9877/node_modules/@angular/core/fesm5/core.js?:3314:1) at TestBedViewEngine.push../node_modules/@angular/core/fesm5/testing.js.TestBedViewEngine.get (http://localhost:9877/node_modules/@angular/core/fesm5/testing.js?:1773:1) at http://localhost:9877/node_modules/@angular/core/fesm5/testing.js?:1778:47 at Array.map () at TestBedViewEngine.push../node_modules/@angular/core/fesm5/testing.js.TestBedViewEngine.execute (http://localhost:9877/node_modules/@angular/core/fesm5/testing.js?:1778:1) at UserContext. (http://localhost:9877/node_modules/@angular/core/fesm5/testing.js?:1948:29) at ZoneDelegate../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (http://localhost:9877/node_modules/zone.js/dist/zone.js?:388:1)

darshankumar1 commented 4 years ago

is there no resolution to this?