1 import { async, ComponentFixture, TestBed } from '@angular/core/testing';
3 import { RoleFunctionsComponent } from './role-functions.component';
4 import { AdminService } from '../admin.service';
5 import { inject } from '@angular/core/testing';
7 describe('RoleFunctionsComponent', () => {
8 let component: RoleFunctionsComponent;
9 let fixture: ComponentFixture<RoleFunctionsComponent>;
11 beforeEach(async(() => {
12 TestBed.configureTestingModule({
13 declarations: [ RoleFunctionsComponent ]
19 fixture = TestBed.createComponent(RoleFunctionsComponent);
20 component = fixture.componentInstance;
21 fixture.detectChanges();
24 it('should create', () => {
25 expect(component).toBeTruthy();
28 it('should test getDismissReason function', inject([AdminService],(adminservice) => {
29 component.getRoleFunctions();
30 expect(adminservice.getRoleFunctionsList).toHaveBeenCalled();