mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 15:03:07 +00:00
62264: Grouped logical entity types together into separate modules
This commit is contained in:
@@ -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));
|
Reference in New Issue
Block a user