67478: AoT build fixes

This commit is contained in:
Kristof De Langhe
2019-12-03 15:40:10 +01:00
parent 558285da85
commit e9a8a25116
3 changed files with 10 additions and 4 deletions

View File

@@ -9,6 +9,7 @@ import { RelationshipOptions } from '../../shared/form/builder/models/relationsh
import { SearchResult } from '../../shared/search/search-result.model'; import { SearchResult } from '../../shared/search/search-result.model';
import { Item } from '../shared/item.model'; import { Item } from '../shared/item.model';
import { skip, take } from 'rxjs/operators'; import { skip, take } from 'rxjs/operators';
import { ExternalSource } from '../shared/external-source.model';
describe('LookupRelationService', () => { describe('LookupRelationService', () => {
let service: LookupRelationService; let service: LookupRelationService;
@@ -29,6 +30,11 @@ describe('LookupRelationService', () => {
}) })
}) })
]; ];
const externalSource = Object.assign(new ExternalSource(), {
id: 'orcidV2',
name: 'orcidV2',
hierarchical: false
});
function init() { function init() {
externalSourceService = jasmine.createSpyObj('externalSourceService', { externalSourceService = jasmine.createSpyObj('externalSourceService', {
@@ -92,7 +98,7 @@ describe('LookupRelationService', () => {
let result; let result;
beforeEach(() => { beforeEach(() => {
result = service.getTotalExternalResults(relationship, optionsWithQuery); result = service.getTotalExternalResults(externalSource, optionsWithQuery);
}); });
it('should start with 0', () => { it('should start with 0', () => {

View File

@@ -55,7 +55,7 @@ export class DsDynamicLookupRelationExternalSourceTabComponent implements OnInit
entriesRD$: Observable<RemoteData<PaginatedList<ExternalSourceEntry>>>; entriesRD$: Observable<RemoteData<PaginatedList<ExternalSourceEntry>>>;
constructor(private router: Router, constructor(private router: Router,
private searchConfigService: SearchConfigurationService, public searchConfigService: SearchConfigurationService,
private externalSourceService: ExternalSourceService) { private externalSourceService: ExternalSourceService) {
} }

View File

@@ -59,9 +59,9 @@ export class DsDynamicLookupRelationSearchTabComponent implements OnInit, OnDest
private router: Router, private router: Router,
private route: ActivatedRoute, private route: ActivatedRoute,
private selectableListService: SelectableListService, private selectableListService: SelectableListService,
private searchConfigService: SearchConfigurationService, public searchConfigService: SearchConfigurationService,
private routeService: RouteService, private routeService: RouteService,
protected lookupRelationService: LookupRelationService public lookupRelationService: LookupRelationService
) { ) {
} }