mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
65272: Existing test fixes
This commit is contained in:
@@ -57,7 +57,7 @@ export abstract class AbstractItemUpdateComponent implements OnInit {
|
||||
*/
|
||||
ngOnInit(): void {
|
||||
observableCombineLatest(this.route.data, this.route.parent.data).pipe(
|
||||
map(([data, parentData]) => Object.assign(data, parentData)),
|
||||
map(([data, parentData]) => Object.assign({}, data, parentData)),
|
||||
map((data) => data.item),
|
||||
first(),
|
||||
map((data: RemoteData<Item>) => data.payload)
|
||||
|
@@ -123,6 +123,7 @@ describe('ItemMetadataComponent', () => {
|
||||
commitUpdates: {}
|
||||
});
|
||||
routeStub = {
|
||||
data: observableOf({}),
|
||||
parent: {
|
||||
data: observableOf({ item: createSuccessfulRemoteDataObject(item) })
|
||||
}
|
||||
|
@@ -122,6 +122,7 @@ describe('ItemRelationshipsComponent', () => {
|
||||
findById: observableOf(new RemoteData(false, false, true, undefined, item))
|
||||
});
|
||||
routeStub = {
|
||||
data: observableOf({}),
|
||||
parent: {
|
||||
data: observableOf({ item: new RemoteData(false, false, true, null, item) })
|
||||
}
|
||||
|
Reference in New Issue
Block a user