@@ -2,6 +2,7 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
22import { of as observableOf } from 'rxjs' ;
33import { TranslateModule } from '@ngx-translate/core' ;
44import { NgbModule } from '@ng-bootstrap/ng-bootstrap' ;
5+ import { ConfigurationDataService } from '../../../core/data/configuration-data.service' ;
56import { AuthorizationDataService } from '../../../core/data/feature-authorization/authorization-data.service' ;
67import { SearchExportCsvComponent } from './search-export-csv.component' ;
78import { ScriptDataService } from '../../../core/data/processes/script-data.service' ;
@@ -23,6 +24,7 @@ describe('SearchExportCsvComponent', () => {
2324 let authorizationDataService : AuthorizationDataService ;
2425 let notificationsService ;
2526 let router ;
27+ let configurationDataService : jasmine . SpyObj < ConfigurationDataService > ;
2628
2729 const process = Object . assign ( new Process ( ) , { processId : 5 , scriptName : 'metadata-export-search' } ) ;
2830
@@ -37,6 +39,10 @@ describe('SearchExportCsvComponent', () => {
3739 ]
3840 } ) ;
3941
42+ configurationDataService = jasmine . createSpyObj ( 'ConfigurationDataService' , {
43+ findByPropertyName : observableOf ( { payload : { value : '500' } } ) ,
44+ } ) ;
45+
4046 function initBeforeEachAsync ( ) {
4147 scriptDataService = jasmine . createSpyObj ( 'scriptDataService' , {
4248 scriptWithNameExistsAndCanExecute : observableOf ( true ) ,
@@ -57,6 +63,7 @@ describe('SearchExportCsvComponent', () => {
5763 { provide : AuthorizationDataService , useValue : authorizationDataService } ,
5864 { provide : NotificationsService , useValue : notificationsService } ,
5965 { provide : Router , useValue : router } ,
66+ { provide : ConfigurationDataService , useValue : configurationDataService } ,
6067 ]
6168 } ) . compileComponents ( ) ;
6269 }
0 commit comments