DS-4107 Update tests and mocks for metadata as map

This commit is contained in:
Chris Wilper
2018-12-22 23:05:57 -05:00
parent 2368df9513
commit ea9ce6194c
25 changed files with 646 additions and 551 deletions

View File

@@ -8,21 +8,25 @@ let communityGridElementComponent: CommunityGridElementComponent;
let fixture: ComponentFixture<CommunityGridElementComponent>;
const mockCommunityWithAbstract: Community = Object.assign(new Community(), {
metadata: [
{
key: 'dc.description.abstract',
language: 'en_US',
value: 'Short description'
}]
metadata: {
'dc.description.abstract': [
{
language: 'en_US',
value: 'Short description'
}
]
}
});
const mockCommunityWithoutAbstract: Community = Object.assign(new Community(), {
metadata: [
{
key: 'dc.title',
language: 'en_US',
value: 'Test title'
}]
metadata: {
'dc.title': [
{
language: 'en_US',
value: 'Test title'
}
]
}
});
describe('CommunityGridElementComponent', () => {