From e4f992ba1d54bcbd89992f0fff923f35669e31bf Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 16 Jul 2019 14:37:51 +0200 Subject: [PATCH] Fix typescript syntax error --- src/app/core/data/resource-policy.service.spec.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/core/data/resource-policy.service.spec.ts b/src/app/core/data/resource-policy.service.spec.ts index e418ac99c8..662cae34c5 100644 --- a/src/app/core/data/resource-policy.service.spec.ts +++ b/src/app/core/data/resource-policy.service.spec.ts @@ -3,7 +3,7 @@ import { TestScheduler } from 'rxjs/testing'; import { RemoteDataBuildService } from '../cache/builders/remote-data-build.service'; import { ResourcePolicy } from '../shared/resource-policy.model'; import { HALEndpointService } from '../shared/hal-endpoint.service'; -import { FindByIDRequest } from './request.models'; +import { GetRequest } from './request.models'; import { RequestService } from './request.service'; import { ResourcePolicyService } from './resource-policy.service'; import { ObjectCacheService } from '../cache/object-cache.service'; @@ -18,16 +18,16 @@ describe('ResourcePolicyService', () => { let rdbService: RemoteDataBuildService; let objectCache: ObjectCacheService; const testObject = { - id: 1 + uuid: '664184ee-b254-45e8-970d-220e5ccc060b' } as ResourcePolicy; - const requestURL = `https://rest.api/rest/api/resourcepolicies/${testObject.id}`; - const requestID = 1; + const requestURL = `https://rest.api/rest/api/resourcepolicies/${testObject.uuid}`; + const requestUUID = '8b3c613a-5a4b-438b-9686-be1d5b4a1c5a'; beforeEach(() => { scheduler = getTestScheduler(); requestService = jasmine.createSpyObj('requestService', { - generateRequestId: requestID, + generateRequestId: requestUUID, configure: true }); rdbService = jasmine.createSpyObj('rdbService', {