Skip to content

Commit dabc3b4

Browse files
author
Jens Vannerum
committed
119612: fix spec test
(cherry picked from commit 6232d4e)
1 parent 5b19ebe commit dabc3b4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/app/shared/search/search-export-csv/search-export-csv.component.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
22
import { of as observableOf } from 'rxjs';
33
import { TranslateModule } from '@ngx-translate/core';
44
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
5+
import { ConfigurationDataService } from '../../../core/data/configuration-data.service';
56
import { AuthorizationDataService } from '../../../core/data/feature-authorization/authorization-data.service';
67
import { SearchExportCsvComponent } from './search-export-csv.component';
78
import { 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

Comments
 (0)