Fixed the test cases,added sonar config
[portal.git] / portal-FE-common / src / app / shared / services / portal-admins / portal-admin.service.spec.ts
index e984467..932d01e 100644 (file)
@@ -1,9 +1,10 @@
 import { TestBed } from '@angular/core/testing';
 
 import { PortalAdminsService } from './portal-admin.service';
+import { HttpClientTestingModule } from '@angular/common/http/testing';
 
 describe('AdminsService', () => {
-  beforeEach(() => TestBed.configureTestingModule({}));
+  beforeEach(() => TestBed.configureTestingModule({imports:[HttpClientTestingModule]}));
 
   it('should be created', () => {
     const service: PortalAdminsService = TestBed.get(PortalAdminsService);