Compare commits

...

1 Commits

Author SHA1 Message Date
Henry
0028401778 [Edit Mode] Added some missing mock behavior to address failing test. Fixes #1361 2016-12-20 14:25:03 -08:00

View File

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