mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
70597: Test fixes
This commit is contained in:
@@ -23,13 +23,17 @@ describe('CollectionMetadataComponent', () => {
|
|||||||
let itemTemplateService: ItemTemplateDataService;
|
let itemTemplateService: ItemTemplateDataService;
|
||||||
|
|
||||||
const template = Object.assign(new Item(), {
|
const template = Object.assign(new Item(), {
|
||||||
self: 'template-selflink'
|
_links: {
|
||||||
|
self: { href: 'template-selflink' }
|
||||||
|
}
|
||||||
});
|
});
|
||||||
const collection = Object.assign(new Collection(), {
|
const collection = Object.assign(new Collection(), {
|
||||||
uuid: 'collection-id',
|
uuid: 'collection-id',
|
||||||
id: 'collection-id',
|
id: 'collection-id',
|
||||||
name: 'Fake Collection',
|
name: 'Fake Collection',
|
||||||
self: 'collection-selflink'
|
_links: {
|
||||||
|
self: { href: 'collection-selflink' }
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const itemTemplateServiceStub = Object.assign({
|
const itemTemplateServiceStub = Object.assign({
|
||||||
|
@@ -29,7 +29,7 @@ describe('EditItemTemplatePageComponent', () => {
|
|||||||
declarations: [EditItemTemplatePageComponent],
|
declarations: [EditItemTemplatePageComponent],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: ItemTemplateDataService, useValue: {} },
|
{ provide: ItemTemplateDataService, useValue: {} },
|
||||||
{ provide: ActivatedRoute, useValue: { data: observableOf({ dso: createSuccessfulRemoteDataObject(collection) }) } }
|
{ provide: ActivatedRoute, useValue: { parent: { data: observableOf({ dso: createSuccessfulRemoteDataObject(collection) }) } } }
|
||||||
],
|
],
|
||||||
schemas: [NO_ERRORS_SCHEMA]
|
schemas: [NO_ERRORS_SCHEMA]
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
|
@@ -143,6 +143,7 @@ describe('ItemBitstreamsComponent', () => {
|
|||||||
parent: {
|
parent: {
|
||||||
data: observableOf({ item: createMockRD(item) })
|
data: observableOf({ item: createMockRD(item) })
|
||||||
},
|
},
|
||||||
|
data: observableOf({}),
|
||||||
url: url
|
url: url
|
||||||
});
|
});
|
||||||
bundleService = jasmine.createSpyObj('bundleService', {
|
bundleService = jasmine.createSpyObj('bundleService', {
|
||||||
|
@@ -59,11 +59,6 @@ describe('ServerSyncBufferEffects', () => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
return observableOf(object);
|
return observableOf(object);
|
||||||
},
|
|
||||||
getBySelfLink: (link) => {
|
|
||||||
const object = new DSpaceObject();
|
|
||||||
object.self = link;
|
|
||||||
return observableOf(object);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user