[Composition] Update specs

Update specs for changes to the return value of
composition.add, nasa/openmctweb#97
This commit is contained in:
Victor Woeltjen
2015-09-02 11:45:52 -07:00
parent b1238b0c96
commit b2649de649
5 changed files with 34 additions and 20 deletions

View File

@@ -59,15 +59,6 @@ define(
// Note that this was checked-for explicitly during validate step
var composition = parentObject.getCapability('composition');
function findChild(children) {
var i;
for (i = 0; i < children.length; i += 1) {
if (children[i].getId() === object.getId()) {
return children[i];
}
}
}
return composition.add(object).then(function (result) {
return parentObject.getCapability('persistence')
.persist()