fix self links in mocks

This commit is contained in:
Art Lowel
2020-02-13 10:07:33 +01:00
parent 07998a8c08
commit e6c1069e19
4 changed files with 11 additions and 7 deletions

View File

@@ -48,7 +48,7 @@ describe('ServerSyncBufferEffects', () => {
provide: ObjectCacheService, useValue: {
getObjectBySelfLink: (link) => {
const object = new DSpaceObject();
object.self = link;
object._links.self = { href: link };
return observableOf(object);
}
}