88
99import { TestBed } from '@angular/core/testing' ;
1010import { MenuItemType } from '../menu-item-type.model' ;
11- import { MenuSubSection , MenuTopSection } from './expandable-menu-provider' ;
1211import { AuthorizationDataServiceStub } from '../../testing/authorization-service.stub' ;
1312import { of as observableOf } from 'rxjs' ;
1413import { AuthorizationDataService } from '../../../core/data/feature-authorization/authorization-data.service' ;
1514import { ScriptDataService } from '../../../core/data/processes/script-data.service' ;
1615import { ScriptServiceStub } from '../../testing/script-service.stub' ;
1716import { ExportMenuProvider } from './export.menu' ;
17+ import { PartialMenuSection } from '../menu-provider.model' ;
1818
19- const expectedTopSection : MenuTopSection = {
19+ const expectedTopSection : PartialMenuSection = {
20+ visible : true ,
2021 model : {
2122 type : MenuItemType . TEXT ,
2223 text : 'menu.section.export' ,
2324 } ,
2425 icon : 'file-export' ,
25- shouldPersistOnRouteChange : true ,
2626} ;
2727
28- const expectedSubSections : MenuSubSection [ ] = [
28+ const expectedSubSections : PartialMenuSection [ ] = [
2929 {
3030 visible : true ,
3131 model : {
3232 type : MenuItemType . ONCLICK ,
3333 text : 'menu.section.export_metadata' ,
3434 function : jasmine . any ( Function ) as any ,
3535 } ,
36- shouldPersistOnRouteChange : true ,
3736 } ,
3837 {
3938 visible : true ,
@@ -42,7 +41,6 @@ const expectedSubSections: MenuSubSection[] = [
4241 text : 'menu.section.export_batch' ,
4342 function : jasmine . any ( Function ) as any ,
4443 } ,
45- shouldPersistOnRouteChange : true ,
4644 }
4745] ;
4846
0 commit comments