} from '@angular/common/http/testing';
import { HTTP_INTERCEPTORS } from '@angular/common/http';
import { HttpRequestInterceptor } from './interceptor';
-import { NotificationService } from './services/ui/notification.service';
-import { EIService } from './services/ei/ei.service';
+import { NotificationService } from '@services/ui/notification.service';
+import { EIService } from '@services/ei/ei.service';
import { of } from 'rxjs/observable/of';
describe(`HttpRequestInterceptor`, () => {
]
});
- httpMock = TestBed.get(HttpTestingController);
- service = TestBed.get(EIService);
+ httpMock = TestBed.inject(HttpTestingController);
+ service = TestBed.inject(EIService);
});
it('should create', () => {
- const interceptors = TestBed.get(HTTP_INTERCEPTORS);
+ const interceptors = TestBed.inject(HTTP_INTERCEPTORS);
let found = false;
interceptors.forEach(interceptor => {
if (interceptor instanceof HttpRequestInterceptor) {