@@ -9,6 +9,7 @@ import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
99import { TranslateModule } from '@ngx-translate/core' ;
1010import { of as observableOf } from 'rxjs' ;
1111
12+ import { ConfigurationDataService } from '../../../core/data/configuration-data.service' ;
1213import { AuthorizationDataService } from '../../../core/data/feature-authorization/authorization-data.service' ;
1314import { ScriptDataService } from '../../../core/data/processes/script-data.service' ;
1415import { getProcessDetailRoute } from '../../../process-page/process-page-routing.paths' ;
@@ -31,6 +32,7 @@ describe('SearchExportCsvComponent', () => {
3132 let authorizationDataService : AuthorizationDataService ;
3233 let notificationsService ;
3334 let router ;
35+ let configurationDataService : jasmine . SpyObj < ConfigurationDataService > ;
3436
3537 const process = Object . assign ( new Process ( ) , { processId : 5 , scriptName : 'metadata-export-search' } ) ;
3638
@@ -45,6 +47,10 @@ describe('SearchExportCsvComponent', () => {
4547 ] ,
4648 } ) ;
4749
50+ configurationDataService = jasmine . createSpyObj ( 'ConfigurationDataService' , {
51+ findByPropertyName : observableOf ( { payload : { value : '500' } } ) ,
52+ } ) ;
53+
4854 function initBeforeEachAsync ( ) {
4955 scriptDataService = jasmine . createSpyObj ( 'scriptDataService' , {
5056 scriptWithNameExistsAndCanExecute : observableOf ( true ) ,
@@ -64,6 +70,7 @@ describe('SearchExportCsvComponent', () => {
6470 { provide : AuthorizationDataService , useValue : authorizationDataService } ,
6571 { provide : NotificationsService , useValue : notificationsService } ,
6672 { provide : Router , useValue : router } ,
73+ { provide : ConfigurationDataService , useValue : configurationDataService } ,
6774 ] ,
6875 } ) . compileComponents ( ) ;
6976 }
0 commit comments