mirror of https://gitee.com/bigwinds/arangodb
Fixed tests for gharial adapter. They did use the old format
This commit is contained in:
parent
68309a2d83
commit
ec5a8eec1f
|
@ -306,7 +306,6 @@ function EventDispatcherControls(list, nodeShaper, edgeShaper, start, dispatcher
|
|||
callbacks.nodes.spot = dispatcher.events.EXPAND;
|
||||
};
|
||||
|
||||
console.log(dispatcherConfig.edgeEditor.adapter);
|
||||
createNewNodeCB();
|
||||
createViewCBs();
|
||||
createConnectCBs();
|
||||
|
|
|
@ -77,7 +77,8 @@
|
|||
break;
|
||||
case "POST":
|
||||
if (req.url.match(/_api\/cursor$/)) {
|
||||
req.success({result:
|
||||
req.success({
|
||||
result: [
|
||||
[
|
||||
[{
|
||||
vertex: node1,
|
||||
|
@ -100,7 +101,9 @@
|
|||
]
|
||||
}
|
||||
}]
|
||||
]});
|
||||
]
|
||||
]
|
||||
});
|
||||
} else if (req.url.match(/_api\/gharial\/myGraph\/edge/)) {
|
||||
req.success({_id: "1-2"});
|
||||
} else {
|
||||
|
@ -520,7 +523,7 @@
|
|||
inner.push(constructPath(ncol, ecol, nid, key));
|
||||
});
|
||||
}
|
||||
return res;
|
||||
return [res];
|
||||
};
|
||||
spyOn($, "ajax").andCallFake(function(req) {
|
||||
var urlParts = req.url.split("/"),
|
||||
|
|
Loading…
Reference in New Issue