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