Compare commits

...

1 Commits

View File

@ -58,7 +58,8 @@ define(
[ [
"getCapability", "getCapability",
"hasCapability", "hasCapability",
"getModel" "getModel",
"getId"
] ]
); );
mockDomainObject.hasCapability.andReturn(true); mockDomainObject.hasCapability.andReturn(true);
@ -66,15 +67,18 @@ define(
return capabilities[capability]; return capabilities[capability];
}); });
mockDomainObject.getModel.andReturn({location: 'a', persisted: undefined}); mockDomainObject.getModel.andReturn({location: 'a', persisted: undefined});
mockDomainObject.getId.andReturn("mockObject");
mockParent = jasmine.createSpyObj( mockParent = jasmine.createSpyObj(
"parentObject", "parentObject",
[ [
"getCapability", "getCapability",
"hasCapability", "hasCapability",
"getModel" "getModel",
"getId"
] ]
); );
mockParent.getId.andReturn("parentId");
mockEditorCapability = jasmine.createSpyObj( mockEditorCapability = jasmine.createSpyObj(
"editor", "editor",
@ -113,6 +117,10 @@ define(
] ]
); );
mockCopyService.perform.andCallFake(function (object) {
return mockPromise(object);
});
mockNotificationService = jasmine.createSpyObj( mockNotificationService = jasmine.createSpyObj(
"notificationService", "notificationService",
[ [