mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
fix ItemGridElementComponent tests
This commit is contained in:
@@ -12,6 +12,9 @@ import { buildPaginatedList } from '../../../../../core/data/paginated-list.mode
|
||||
import { PageInfo } from '../../../../../core/shared/page-info.model';
|
||||
import { DSONameService } from '../../../../../core/breadcrumbs/dso-name.service';
|
||||
import { DSONameServiceMock } from '../../../../mocks/dso-name.service.mock';
|
||||
import {
|
||||
ItemSearchResultGridElementComponent
|
||||
} from '../../../search-result-grid-element/item-search-result/item/item-search-result-grid-element.component';
|
||||
|
||||
const mockItem = Object.assign(new Item(), {
|
||||
bundles: createSuccessfulRemoteDataObject$(buildPaginatedList(new PageInfo(), [])),
|
||||
@@ -60,7 +63,8 @@ describe('ItemGridElementComponent', () => {
|
||||
],
|
||||
schemas: [NO_ERRORS_SCHEMA]
|
||||
}).overrideComponent(ItemGridElementComponent, {
|
||||
set: { changeDetection: ChangeDetectionStrategy.Default }
|
||||
add: { changeDetection: ChangeDetectionStrategy.Default },
|
||||
remove: { imports: [ItemSearchResultGridElementComponent]}
|
||||
}).compileComponents();
|
||||
}));
|
||||
|
||||
|
Reference in New Issue
Block a user