Fixed the test cases,added sonar config
[portal.git] / portal-FE-common / src / app / pages / admins / admins.component.spec.ts
index 563f80f..c983cb9 100644 (file)
@@ -38,6 +38,9 @@
 import { async, ComponentFixture, TestBed } from '@angular/core/testing';
 
 import { AdminsComponent } from './admins.component';
+import { NgMaterialModule } from 'src/app/ng-material-module';
+import { HttpClientTestingModule } from '@angular/common/http/testing';
+import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 
 describe('AdminsComponent', () => {
   let component: AdminsComponent;
@@ -45,7 +48,8 @@ describe('AdminsComponent', () => {
 
   beforeEach(async(() => {
     TestBed.configureTestingModule({
-      declarations: [ AdminsComponent ]
+      declarations: [ AdminsComponent ],
+      imports: [NgMaterialModule,HttpClientTestingModule,BrowserAnimationsModule]
     })
     .compileComponents();
   }));