mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 10:34:15 +00:00
fixed an issue where certain GET requests would be performed more often then needed and added tests for the requestservice (not everything tested yet)
This commit is contained in:
7
src/app/shared/mocks/mock-object-cache.service.ts
Normal file
7
src/app/shared/mocks/mock-object-cache.service.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { ObjectCacheService } from '../../core/cache/object-cache.service';
|
||||
|
||||
export function initMockObjectCacheService(): ObjectCacheService {
|
||||
return jasmine.createSpyObj('objectCacheService', {
|
||||
hasBySelfLink: true,
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user