mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 15:03:07 +00:00
Merge branch 'master' into configurable_entities
Conflicts: src/app/+collection-page/collection-page.component.ts src/app/+item-page/full/full-item-page.component.ts src/app/+item-page/simple/item-page.component.ts src/app/+search-page/search-filters/search-filter/search-filter.service.spec.ts src/app/+search-page/search-filters/search-filter/search-filter.service.ts src/app/+search-page/search-page.component.spec.ts src/app/+search-page/search-page.component.ts src/app/+search-page/search-results/search-results.component.spec.ts src/app/+search-page/search-results/search-results.component.ts src/app/+search-page/search-service/search-configuration.service.spec.ts src/app/+search-page/search-service/search-configuration.service.ts src/app/+search-page/search-service/search.service.ts src/app/core/cache/builders/remote-data-build.service.spec.ts src/app/core/cache/builders/remote-data-build.service.ts src/app/core/data/data.service.ts src/app/core/metadata/metadata.service.ts src/app/core/shared/item.model.ts src/app/core/shared/operators.ts src/app/shared/loading/loading.component.ts src/app/shared/object-collection/object-collection.component.ts src/app/shared/object-list/item-list-element/item-list-element.component.spec.ts src/app/shared/object-list/search-result-list-element/item-search-result/item-search-result-list-element.component.spec.ts src/app/shared/services/route.service.spec.ts src/app/shared/services/route.service.ts src/app/shared/shared.module.ts src/app/shared/testing/hal-endpoint-service-stub.ts src/app/shared/testing/search-service-stub.ts yarn.lock
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { ItemSearchResultGridElementComponent } from './item-search-result-grid-element.component';
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { NO_ERRORS_SCHEMA, ChangeDetectionStrategy } from '@angular/core';
|
||||
import { of as observableOf } from 'rxjs';
|
||||
import { ChangeDetectionStrategy, NO_ERRORS_SCHEMA } from '@angular/core';
|
||||
import { By } from '@angular/platform-browser';
|
||||
import { TruncatePipe } from '../../../utils/truncate.pipe';
|
||||
import { Item } from '../../../../core/shared/item.model';
|
||||
@@ -13,13 +13,13 @@ let itemSearchResultGridElementComponent: ItemSearchResultGridElementComponent;
|
||||
let fixture: ComponentFixture<ItemSearchResultGridElementComponent>;
|
||||
|
||||
const truncatableServiceStub: any = {
|
||||
isCollapsed: (id: number) => Observable.of(true),
|
||||
isCollapsed: (id: number) => observableOf(true),
|
||||
};
|
||||
|
||||
const mockItemWithAuthorAndDate: ItemSearchResult = new ItemSearchResult();
|
||||
mockItemWithAuthorAndDate.hitHighlights = [];
|
||||
mockItemWithAuthorAndDate.dspaceObject = Object.assign(new Item(), {
|
||||
bitstreams: Observable.of({}),
|
||||
bitstreams: observableOf({}),
|
||||
metadata: [
|
||||
{
|
||||
key: 'dc.contributor.author',
|
||||
@@ -36,7 +36,7 @@ mockItemWithAuthorAndDate.dspaceObject = Object.assign(new Item(), {
|
||||
const mockItemWithoutAuthorAndDate: ItemSearchResult = new ItemSearchResult();
|
||||
mockItemWithoutAuthorAndDate.hitHighlights = [];
|
||||
mockItemWithoutAuthorAndDate.dspaceObject = Object.assign(new Item(), {
|
||||
bitstreams: Observable.of({}),
|
||||
bitstreams: observableOf({}),
|
||||
metadata: [
|
||||
{
|
||||
key: 'dc.title',
|
||||
|
Reference in New Issue
Block a user