mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
Merge branch 'master' into object-factory-refactoring
Conflicts: src/app/+item-page/simple/item-types/shared/item.component.spec.ts src/app/entity-groups/journal-entities/item-pages/journal-issue/journal-issue.component.spec.ts src/app/entity-groups/journal-entities/item-pages/journal-volume/journal-volume.component.spec.ts src/app/entity-groups/journal-entities/item-pages/journal/journal.component.spec.ts src/app/entity-groups/research-entities/item-pages/orgunit/orgunit.component.spec.ts src/app/entity-groups/research-entities/item-pages/person/person.component.spec.ts src/app/entity-groups/research-entities/item-pages/project/project.component.spec.ts src/app/submission/form/collection/submission-form-collection.component.spec.ts
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
import { Item } from '../../../../core/shared/item.model';
|
||||
import { RemoteData } from '../../../../core/data/remote-data';
|
||||
import { PaginatedList } from '../../../../core/data/paginated-list';
|
||||
import { PageInfo } from '../../../../core/shared/page-info.model';
|
||||
import { ProjectComponent } from './project.component';
|
||||
import { of as observableOf } from 'rxjs';
|
||||
import {
|
||||
createRelationshipsObservable,
|
||||
getItemPageFieldsTest
|
||||
} from '../../../../+item-page/simple/item-types/shared/item.component.spec';
|
||||
import { createSuccessfulRemoteDataObject$ } from '../../../../shared/testing/utils';
|
||||
|
||||
const mockItem: Item = Object.assign(new Item(), {
|
||||
bitstreams: createSuccessfulRemoteDataObject$(new PaginatedList(new PageInfo(), [])),
|
||||
metadata: {
|
||||
// 'project.identifier.status': [
|
||||
// {
|
||||
// language: 'en_US',
|
||||
// value: 'published'
|
||||
// }
|
||||
// ],
|
||||
'dc.identifier': [
|
||||
{
|
||||
language: 'en_US',
|
||||
value: '1'
|
||||
}
|
||||
],
|
||||
// 'project.identifier.expectedcompletion': [
|
||||
// {
|
||||
// language: 'en_US',
|
||||
// value: 'exp comp'
|
||||
// }
|
||||
// ],
|
||||
'dc.description': [
|
||||
{
|
||||
language: 'en_US',
|
||||
value: 'keyword'
|
||||
}
|
||||
],
|
||||
'dc.subject': [
|
||||
{
|
||||
language: 'en_US',
|
||||
value: 'keyword'
|
||||
}
|
||||
]
|
||||
},
|
||||
relationships: createRelationshipsObservable()
|
||||
});
|
||||
|
||||
describe('ProjectComponent', getItemPageFieldsTest(mockItem, ProjectComponent));
|
Reference in New Issue
Block a user