mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
66156: AoT build error fix
This commit is contained in:
@@ -16,7 +16,7 @@ describe('RelatedEntitiesSearchComponent', () => {
|
|||||||
id: 'id1'
|
id: 'id1'
|
||||||
});
|
});
|
||||||
const mockRelationType = 'publicationsOfAuthor';
|
const mockRelationType = 'publicationsOfAuthor';
|
||||||
const mockRelationEntityType = 'publication';
|
const mockConfiguration = 'publication';
|
||||||
const mockFilter= `f.${mockRelationType}=${mockItem.id}`;
|
const mockFilter= `f.${mockRelationType}=${mockItem.id}`;
|
||||||
const fixedFilterServiceStub = {
|
const fixedFilterServiceStub = {
|
||||||
getFilterByRelation: () => mockFilter
|
getFilterByRelation: () => mockFilter
|
||||||
@@ -39,7 +39,7 @@ describe('RelatedEntitiesSearchComponent', () => {
|
|||||||
fixedFilterService = (comp as any).fixedFilterService;
|
fixedFilterService = (comp as any).fixedFilterService;
|
||||||
comp.relationType = mockRelationType;
|
comp.relationType = mockRelationType;
|
||||||
comp.item = mockItem;
|
comp.item = mockItem;
|
||||||
comp.relationEntityType = mockRelationEntityType;
|
comp.configuration = mockConfiguration;
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ describe('RelatedEntitiesSearchComponent', () => {
|
|||||||
|
|
||||||
it('should create a configuration$', () => {
|
it('should create a configuration$', () => {
|
||||||
comp.configuration$.subscribe((configuration) => {
|
comp.configuration$.subscribe((configuration) => {
|
||||||
expect(configuration).toEqual(mockRelationEntityType);
|
expect(configuration).toEqual(mockConfiguration);
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user