62264: Grouped logical entity types together into separate modules

This commit is contained in:
Kristof De Langhe
2019-05-09 17:51:11 +02:00
parent dcaeb71d68
commit 2166e0633c
61 changed files with 150 additions and 69 deletions

View File

@@ -0,0 +1,46 @@
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 { createRelationshipsObservable, getItemPageFieldsTest } from '../shared/item.component.spec';
import { ProjectComponent } from './project.component';
import { of as observableOf } from 'rxjs';
const mockItem: Item = Object.assign(new Item(), {
bitstreams: observableOf(new RemoteData(false, false, true, null, new PaginatedList(new PageInfo(), []))),
metadata: {
'project.identifier.status': [
{
language: 'en_US',
value: 'published'
}
],
'project.identifier.id': [
{
language: 'en_US',
value: '1'
}
],
'project.identifier.expectedcompletion': [
{
language: 'en_US',
value: 'exp comp'
}
],
'project.identifier.description': [
{
language: 'en_US',
value: 'keyword'
}
],
'project.identifier.keyword': [
{
language: 'en_US',
value: 'keyword'
}
]
},
relationships: createRelationshipsObservable()
});
describe('ProjectComponent', getItemPageFieldsTest(mockItem, ProjectComponent));