summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/role-functions/role-functions.component.spec.ts11
1 files changed, 9 insertions, 2 deletions
diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/role-functions/role-functions.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/role-functions/role-functions.component.spec.ts
index a03f2e71..24396996 100644
--- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/role-functions/role-functions.component.spec.ts
+++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/role-functions/role-functions.component.spec.ts
@@ -1,6 +1,8 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { RoleFunctionsComponent } from './role-functions.component';
+import { AdminService } from '../admin.service';
+import { inject } from '@angular/core/testing';
describe('RoleFunctionsComponent', () => {
let component: RoleFunctionsComponent;
@@ -8,8 +10,8 @@ describe('RoleFunctionsComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
- declarations: [ RoleFunctionsComponent ]
- })
+ declarations: [ RoleFunctionsComponent ]
+ })
.compileComponents();
}));
@@ -22,4 +24,9 @@ describe('RoleFunctionsComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+it('should test getDismissReason function', inject([AdminService],(adminservice) => {
+ component.getRoleFunctions();
+ expect(adminservice.getRoleFunctionsList).toHaveBeenCalled();
+ }));
});