mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 15:03:07 +00:00
Removed the handle index (not needed because the uuid index will always be used internally) and all associated code.
This commit is contained in:
@@ -11,7 +11,6 @@ import { UUIDService } from '../shared/uuid.service';
|
||||
import { RequestConfigureAction, RequestExecuteAction } from './request.actions';
|
||||
import {
|
||||
DeleteRequest,
|
||||
FindByIDRequest,
|
||||
GetRequest,
|
||||
HeadRequest,
|
||||
OptionsRequest,
|
||||
@@ -22,7 +21,6 @@ import {
|
||||
} from './request.models';
|
||||
import { RequestService } from './request.service';
|
||||
import { TestScheduler } from 'rxjs/testing';
|
||||
import { IdentifierType } from '../index/index.reducer';
|
||||
|
||||
describe('RequestService', () => {
|
||||
let scheduler: TestScheduler;
|
||||
@@ -40,7 +38,6 @@ describe('RequestService', () => {
|
||||
const testDeleteRequest = new DeleteRequest(testUUID, testHref);
|
||||
const testOptionsRequest = new OptionsRequest(testUUID, testHref);
|
||||
const testHeadRequest = new HeadRequest(testUUID, testHref);
|
||||
const testFindByIdRequest = new FindByIDRequest(testUUID, testHref, testUUID, IdentifierType.UUID);
|
||||
const testPatchRequest = new PatchRequest(testUUID, testHref);
|
||||
let selectSpy;
|
||||
|
||||
@@ -309,14 +306,6 @@ describe('RequestService', () => {
|
||||
const result = serviceAsAny.isCachedOrPending(testGetRequest);
|
||||
const expected = true;
|
||||
|
||||
expect(result).toEqual(expected);
|
||||
});
|
||||
it('should return true for instance of FindByIdRequest', () => {
|
||||
(objectCache.hasBySelfLink as any).and.returnValue(false);
|
||||
const result = serviceAsAny.isCachedOrPending(testFindByIdRequest);
|
||||
expect(objectCache.hasById).toHaveBeenCalledWith(testUUID, IdentifierType.UUID);
|
||||
const expected = true;
|
||||
|
||||
expect(result).toEqual(expected);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user