mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 10:34:15 +00:00
Merge branch 'master' into w2p-63669_Edit-Col/Com-Tabs
This commit is contained in:
@@ -38,8 +38,8 @@ describe('EditRelationshipListComponent', () => {
|
|||||||
relationshipType = Object.assign(new RelationshipType(), {
|
relationshipType = Object.assign(new RelationshipType(), {
|
||||||
id: '1',
|
id: '1',
|
||||||
uuid: '1',
|
uuid: '1',
|
||||||
leftLabel: 'isAuthorOfPublication',
|
leftwardType: 'isAuthorOfPublication',
|
||||||
rightLabel: 'isPublicationOfAuthor'
|
rightwardType: 'isPublicationOfAuthor'
|
||||||
});
|
});
|
||||||
|
|
||||||
relationships = [
|
relationships = [
|
||||||
@@ -119,7 +119,7 @@ describe('EditRelationshipListComponent', () => {
|
|||||||
de = fixture.debugElement;
|
de = fixture.debugElement;
|
||||||
comp.item = item;
|
comp.item = item;
|
||||||
comp.url = url;
|
comp.url = url;
|
||||||
comp.relationshipLabel = relationshipType.leftLabel;
|
comp.relationshipLabel = relationshipType.leftwardType;
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -34,8 +34,8 @@ describe('EditRelationshipComponent', () => {
|
|||||||
relationshipType = Object.assign(new RelationshipType(), {
|
relationshipType = Object.assign(new RelationshipType(), {
|
||||||
id: '1',
|
id: '1',
|
||||||
uuid: '1',
|
uuid: '1',
|
||||||
leftLabel: 'isAuthorOfPublication',
|
leftwardType: 'isAuthorOfPublication',
|
||||||
rightLabel: 'isPublicationOfAuthor'
|
rightwardType: 'isPublicationOfAuthor'
|
||||||
});
|
});
|
||||||
|
|
||||||
relationships = [
|
relationships = [
|
||||||
|
@@ -68,8 +68,8 @@ describe('ItemRelationshipsComponent', () => {
|
|||||||
relationshipType = Object.assign(new RelationshipType(), {
|
relationshipType = Object.assign(new RelationshipType(), {
|
||||||
id: '1',
|
id: '1',
|
||||||
uuid: '1',
|
uuid: '1',
|
||||||
leftLabel: 'isAuthorOfPublication',
|
leftwardType: 'isAuthorOfPublication',
|
||||||
rightLabel: 'isPublicationOfAuthor'
|
rightwardType: 'isPublicationOfAuthor'
|
||||||
});
|
});
|
||||||
|
|
||||||
relationships = [
|
relationships = [
|
||||||
|
@@ -5,7 +5,6 @@ import { getMockRemoteDataBuildService } from '../../shared/mocks/mock-remote-da
|
|||||||
import { of as observableOf } from 'rxjs/internal/observable/of';
|
import { of as observableOf } from 'rxjs/internal/observable/of';
|
||||||
import { RequestEntry } from './request.reducer';
|
import { RequestEntry } from './request.reducer';
|
||||||
import { RelationshipType } from '../shared/item-relationships/relationship-type.model';
|
import { RelationshipType } from '../shared/item-relationships/relationship-type.model';
|
||||||
import { ResourceType } from '../shared/resource-type';
|
|
||||||
import { Relationship } from '../shared/item-relationships/relationship.model';
|
import { Relationship } from '../shared/item-relationships/relationship.model';
|
||||||
import { RemoteData } from './remote-data';
|
import { RemoteData } from './remote-data';
|
||||||
import { getMockRequestService } from '../../shared/mocks/mock-request.service';
|
import { getMockRequestService } from '../../shared/mocks/mock-request.service';
|
||||||
@@ -33,8 +32,8 @@ describe('RelationshipService', () => {
|
|||||||
const relationshipType = Object.assign(new RelationshipType(), {
|
const relationshipType = Object.assign(new RelationshipType(), {
|
||||||
id: '1',
|
id: '1',
|
||||||
uuid: '1',
|
uuid: '1',
|
||||||
leftLabel: 'isAuthorOfPublication',
|
leftwardType: 'isAuthorOfPublication',
|
||||||
rightLabel: 'isPublicationOfAuthor'
|
rightwardType: 'isPublicationOfAuthor'
|
||||||
});
|
});
|
||||||
|
|
||||||
const relationship1 = Object.assign(new Relationship(), {
|
const relationship1 = Object.assign(new Relationship(), {
|
||||||
@@ -129,7 +128,7 @@ describe('RelationshipService', () => {
|
|||||||
describe('getItemRelationshipLabels', () => {
|
describe('getItemRelationshipLabels', () => {
|
||||||
it('should return the correct labels', () => {
|
it('should return the correct labels', () => {
|
||||||
service.getItemRelationshipLabels(item).subscribe((result) => {
|
service.getItemRelationshipLabels(item).subscribe((result) => {
|
||||||
expect(result).toEqual([relationshipType.rightLabel]);
|
expect(result).toEqual([relationshipType.rightwardType]);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -144,7 +143,7 @@ describe('RelationshipService', () => {
|
|||||||
|
|
||||||
describe('getRelatedItemsByLabel', () => {
|
describe('getRelatedItemsByLabel', () => {
|
||||||
it('should return the related items by label', () => {
|
it('should return the related items by label', () => {
|
||||||
service.getRelatedItemsByLabel(item, relationshipType.rightLabel).subscribe((result) => {
|
service.getRelatedItemsByLabel(item, relationshipType.rightwardType).subscribe((result) => {
|
||||||
expect(result).toEqual(relatedItems);
|
expect(result).toEqual(relatedItems);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user