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