mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
fixed caching
This commit is contained in:
@@ -94,7 +94,7 @@ describe('ComColDataService', () => {
|
||||
|
||||
function initMockObjectCacheService(): ObjectCacheService {
|
||||
return jasmine.createSpyObj('objectCache', {
|
||||
getByUUID: cold('d-', {
|
||||
getObjectByUUID: cold('d-', {
|
||||
d: {
|
||||
_links: {
|
||||
[LINK_NAME]: scopedEndpoint
|
||||
@@ -159,7 +159,7 @@ describe('ComColDataService', () => {
|
||||
it('should fetch the scope Community from the cache', () => {
|
||||
scheduler.schedule(() => service.getBrowseEndpoint(options).subscribe());
|
||||
scheduler.flush();
|
||||
expect(objectCache.getByUUID).toHaveBeenCalledWith(scopeID);
|
||||
expect(objectCache.getObjectByUUID).toHaveBeenCalledWith(scopeID);
|
||||
});
|
||||
|
||||
it('should return the endpoint to fetch resources within the given scope', () => {
|
||||
|
Reference in New Issue
Block a user