X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fsrc%2Fapp%2Finterceptor.spec.ts;h=e299b64a7629383ec3724414ba59ea47643c8d04;hb=eb4892585eac42745b0393cc1a27205b1d32fc36;hp=3c35a71dd554acfa75a44afce4c25f882c4a46b5;hpb=b38d7384f7ef6571895d6d0cf89791749c33f783;p=portal%2Fnonrtric-controlpanel.git diff --git a/webapp-frontend/src/app/interceptor.spec.ts b/webapp-frontend/src/app/interceptor.spec.ts index 3c35a71..e299b64 100644 --- a/webapp-frontend/src/app/interceptor.spec.ts +++ b/webapp-frontend/src/app/interceptor.spec.ts @@ -25,8 +25,8 @@ import { } 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`, () => { @@ -51,12 +51,12 @@ 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) {