diff --git a/platform/core/test/capabilities/PersistenceCapabilitySpec.js b/platform/core/test/capabilities/PersistenceCapabilitySpec.js index 5c826dc602..be8c181cbd 100644 --- a/platform/core/test/capabilities/PersistenceCapabilitySpec.js +++ b/platform/core/test/capabilities/PersistenceCapabilitySpec.js @@ -35,7 +35,8 @@ define( mockNofificationService, mockCacheService, mockQ, - id = "object id", + key = "persistence key", + id = "object identifier", model, SPACE = "some space", persistence, @@ -101,7 +102,7 @@ define( }); mockIdentifierService.parse.andReturn(mockIdentifier); mockIdentifier.getSpace.andReturn(SPACE); - mockIdentifier.getKey.andReturn(id); + mockIdentifier.getKey.andReturn(key); persistence = new PersistenceCapability( mockCacheService, mockPersistenceService, @@ -125,7 +126,7 @@ define( expect(mockPersistenceService.createObject).toHaveBeenCalledWith( SPACE, - id, + key, model ); }); @@ -139,7 +140,7 @@ define( expect(mockPersistenceService.updateObject).toHaveBeenCalledWith( SPACE, - id, + key, model ); });