angular testbed.get deprecated code example
Example: angular/http deprecated
Before version 4.3, the @angular/http module was used for making
HTTP requests in Angular applications.
The Angular team has now deprecated Http in version 5.
The HttpClient API from @angular/common/http package that shipped
in version 4.3 is now recommended for use in all apps.
Usage:
import { HttpClientModule } from '@angular/common/http';