@@ -17,43 +17,43 @@ import { ScriptDataService } from '../../../core/data/processes/script-data.serv
1717import { ScriptServiceStub } from '../../testing/script-service.stub' ;
1818import { PartialMenuSection } from '../menu-provider.model' ;
1919
20- const expectedTopSection : PartialMenuSection = {
21- visible : true ,
22- model : {
23- type : MenuItemType . TEXT ,
24- text : 'menu.section.access_control' ,
25- } ,
26- icon : 'key'
27- } ;
28-
29- const expectedSubSections : PartialMenuSection [ ] = [
30- {
20+ describe ( 'AccessControlMenuProvider' , ( ) => {
21+ const expectedTopSection : PartialMenuSection = {
3122 visible : true ,
3223 model : {
33- type : MenuItemType . LINK ,
34- text : 'menu.section.access_control_people' ,
35- link : '/access-control/epeople' ,
24+ type : MenuItemType . TEXT ,
25+ text : 'menu.section.access_control' ,
3626 } ,
37- } ,
38- {
39- visible : false ,
40- model : {
41- type : MenuItemType . LINK ,
42- text : 'menu.section.access_control_groups' ,
43- link : '/access-control/groups' ,
27+ icon : 'key'
28+ } ;
29+
30+ const expectedSubSections : PartialMenuSection [ ] = [
31+ {
32+ visible : true ,
33+ model : {
34+ type : MenuItemType . LINK ,
35+ text : 'menu.section.access_control_people' ,
36+ link : '/access-control/epeople' ,
37+ } ,
4438 } ,
45- } ,
46- {
47- visible : true ,
48- model : {
49- type : MenuItemType . LINK ,
50- text : 'menu.section.access_control_bulk ' ,
51- link : '/access-control/bulk-access' ,
39+ {
40+ visible : false ,
41+ model : {
42+ type : MenuItemType . LINK ,
43+ text : 'menu.section.access_control_groups' ,
44+ link : '/access-control/groups ' ,
45+ } ,
5246 } ,
53- } ,
54- ] ;
47+ {
48+ visible : true ,
49+ model : {
50+ type : MenuItemType . LINK ,
51+ text : 'menu.section.access_control_bulk' ,
52+ link : '/access-control/bulk-access' ,
53+ } ,
54+ } ,
55+ ] ;
5556
56- describe ( 'AccessControlMenuProvider' , ( ) => {
5757 let provider : AccessControlMenuProvider ;
5858 let authorizationServiceStub = new AuthorizationDataServiceStub ( ) ;
5959
@@ -69,8 +69,8 @@ describe('AccessControlMenuProvider', () => {
6969 TestBed . configureTestingModule ( {
7070 providers : [
7171 AccessControlMenuProvider ,
72- { provide : AuthorizationDataService , useValue : authorizationServiceStub } ,
73- { provide : ScriptDataService , useClass : ScriptServiceStub } ,
72+ { provide : AuthorizationDataService , useValue : authorizationServiceStub } ,
73+ { provide : ScriptDataService , useClass : ScriptServiceStub } ,
7474 ] ,
7575 } ) ;
7676 provider = TestBed . inject ( AccessControlMenuProvider ) ;
0 commit comments