Fixed the test cases,added sonar config
[portal.git] / portal-FE-common / src / app / pages / role / role-functions / role-functions.component.spec.ts
index ccefb8d..8aa41e0 100644 (file)
 import { async, ComponentFixture, TestBed } from '@angular/core/testing';
 
 import { RoleFunctionsComponent } from './role-functions.component';
+import { FormsModule } from '@angular/forms';
+import { NgMaterialModule } from 'src/app/ng-material-module';
+import { HttpClientTestingModule } from '@angular/common/http/testing';
+import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 
 describe('RoleFunctionsComponent', () => {
   let component: RoleFunctionsComponent;
@@ -45,7 +49,8 @@ describe('RoleFunctionsComponent', () => {
 
   beforeEach(async(() => {
     TestBed.configureTestingModule({
-      declarations: [ RoleFunctionsComponent ]
+      declarations: [ RoleFunctionsComponent ],
+      imports:[FormsModule,NgMaterialModule,HttpClientTestingModule,BrowserAnimationsModule],
     })
     .compileComponents();
   }));