summaryrefslogtreecommitdiffstats
path: root/portal-FE-common/src/app/pages/role/add-role/add-role.component.spec.ts
diff options
context:
space:
mode:
Diffstat (limited to 'portal-FE-common/src/app/pages/role/add-role/add-role.component.spec.ts')
-rw-r--r--portal-FE-common/src/app/pages/role/add-role/add-role.component.spec.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/portal-FE-common/src/app/pages/role/add-role/add-role.component.spec.ts b/portal-FE-common/src/app/pages/role/add-role/add-role.component.spec.ts
index 1104010d..1894fa8a 100644
--- a/portal-FE-common/src/app/pages/role/add-role/add-role.component.spec.ts
+++ b/portal-FE-common/src/app/pages/role/add-role/add-role.component.spec.ts
@@ -38,6 +38,10 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { AddRoleComponent } from './add-role.component';
+import { FormsModule } from '@angular/forms';
+import { NgMaterialModule } from 'src/app/ng-material-module';
+import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
+import { HttpClientTestingModule } from '@angular/common/http/testing';
describe('AddRoleComponent', () => {
let component: AddRoleComponent;
@@ -45,7 +49,9 @@ describe('AddRoleComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
- declarations: [ AddRoleComponent ]
+ declarations: [ AddRoleComponent ],
+ imports:[FormsModule,NgMaterialModule,HttpClientTestingModule],
+ providers:[NgbActiveModal]
})
.compileComponents();
}));