mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
Fix typescript syntax error
This commit is contained in:
@@ -3,7 +3,7 @@ import { TestScheduler } from 'rxjs/testing';
|
|||||||
import { RemoteDataBuildService } from '../cache/builders/remote-data-build.service';
|
import { RemoteDataBuildService } from '../cache/builders/remote-data-build.service';
|
||||||
import { ResourcePolicy } from '../shared/resource-policy.model';
|
import { ResourcePolicy } from '../shared/resource-policy.model';
|
||||||
import { HALEndpointService } from '../shared/hal-endpoint.service';
|
import { HALEndpointService } from '../shared/hal-endpoint.service';
|
||||||
import { FindByIDRequest } from './request.models';
|
import { GetRequest } from './request.models';
|
||||||
import { RequestService } from './request.service';
|
import { RequestService } from './request.service';
|
||||||
import { ResourcePolicyService } from './resource-policy.service';
|
import { ResourcePolicyService } from './resource-policy.service';
|
||||||
import { ObjectCacheService } from '../cache/object-cache.service';
|
import { ObjectCacheService } from '../cache/object-cache.service';
|
||||||
@@ -18,16 +18,16 @@ describe('ResourcePolicyService', () => {
|
|||||||
let rdbService: RemoteDataBuildService;
|
let rdbService: RemoteDataBuildService;
|
||||||
let objectCache: ObjectCacheService;
|
let objectCache: ObjectCacheService;
|
||||||
const testObject = {
|
const testObject = {
|
||||||
id: 1
|
uuid: '664184ee-b254-45e8-970d-220e5ccc060b'
|
||||||
} as ResourcePolicy;
|
} as ResourcePolicy;
|
||||||
const requestURL = `https://rest.api/rest/api/resourcepolicies/${testObject.id}`;
|
const requestURL = `https://rest.api/rest/api/resourcepolicies/${testObject.uuid}`;
|
||||||
const requestID = 1;
|
const requestUUID = '8b3c613a-5a4b-438b-9686-be1d5b4a1c5a';
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
scheduler = getTestScheduler();
|
scheduler = getTestScheduler();
|
||||||
|
|
||||||
requestService = jasmine.createSpyObj('requestService', {
|
requestService = jasmine.createSpyObj('requestService', {
|
||||||
generateRequestId: requestID,
|
generateRequestId: requestUUID,
|
||||||
configure: true
|
configure: true
|
||||||
});
|
});
|
||||||
rdbService = jasmine.createSpyObj('rdbService', {
|
rdbService = jasmine.createSpyObj('rdbService', {
|
||||||
|
Reference in New Issue
Block a user