24396996f3c87134b6d24fb83a85071aabf84568
[portal/sdk.git] /
1 import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2
3 import { RoleFunctionsComponent } from './role-functions.component';
4 import { AdminService } from '../admin.service';
5 import { inject } from '@angular/core/testing';
6
7 describe('RoleFunctionsComponent', () => {
8   let component: RoleFunctionsComponent;
9   let fixture: ComponentFixture<RoleFunctionsComponent>;
10
11   beforeEach(async(() => {
12     TestBed.configureTestingModule({
13       declarations: [ RoleFunctionsComponent ] 
14     }) 
15     .compileComponents();
16   }));
17
18   beforeEach(() => {
19     fixture = TestBed.createComponent(RoleFunctionsComponent);
20     component = fixture.componentInstance;
21     fixture.detectChanges();
22   });
23
24   it('should create', () => {
25     expect(component).toBeTruthy();
26   });
27
28 it('should test getDismissReason function', inject([AdminService],(adminservice) => {
29     component.getRoleFunctions();
30     expect(adminservice.getRoleFunctionsList).toHaveBeenCalled();
31   }));
32 });