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;
|
callbacks.nodes.spot = dispatcher.events.EXPAND;
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log(dispatcherConfig.edgeEditor.adapter);
|
|
||||||
createNewNodeCB();
|
createNewNodeCB();
|
||||||
createViewCBs();
|
createViewCBs();
|
||||||
createConnectCBs();
|
createConnectCBs();
|
||||||
|
|
|
@ -77,7 +77,8 @@
|
||||||
break;
|
break;
|
||||||
case "POST":
|
case "POST":
|
||||||
if (req.url.match(/_api\/cursor$/)) {
|
if (req.url.match(/_api\/cursor$/)) {
|
||||||
req.success({result:
|
req.success({
|
||||||
|
result: [
|
||||||
[
|
[
|
||||||
[{
|
[{
|
||||||
vertex: node1,
|
vertex: node1,
|
||||||
|
@ -100,7 +101,9 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
]});
|
]
|
||||||
|
]
|
||||||
|
});
|
||||||
} else if (req.url.match(/_api\/gharial\/myGraph\/edge/)) {
|
} else if (req.url.match(/_api\/gharial\/myGraph\/edge/)) {
|
||||||
req.success({_id: "1-2"});
|
req.success({_id: "1-2"});
|
||||||
} else {
|
} else {
|
||||||
|
@ -520,7 +523,7 @@
|
||||||
inner.push(constructPath(ncol, ecol, nid, key));
|
inner.push(constructPath(ncol, ecol, nid, key));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return res;
|
return [res];
|
||||||
};
|
};
|
||||||
spyOn($, "ajax").andCallFake(function(req) {
|
spyOn($, "ajax").andCallFake(function(req) {
|
||||||
var urlParts = req.url.split("/"),
|
var urlParts = req.url.split("/"),
|
||||||
|
|
Loading…
Reference in New Issue