diff --git a/js/apps/system/aardvark/frontend/js/graphViewer/ui/eventDispatcherControls.js b/js/apps/system/aardvark/frontend/js/graphViewer/ui/eventDispatcherControls.js index f0cdf520c1..98b3b38bf0 100644 --- a/js/apps/system/aardvark/frontend/js/graphViewer/ui/eventDispatcherControls.js +++ b/js/apps/system/aardvark/frontend/js/graphViewer/ui/eventDispatcherControls.js @@ -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(); diff --git a/js/apps/system/aardvark/test/specs/graphViewer/specAdapter/gharialAdapterSpec.js b/js/apps/system/aardvark/test/specs/graphViewer/specAdapter/gharialAdapterSpec.js index 97393de852..dde1334295 100644 --- a/js/apps/system/aardvark/test/specs/graphViewer/specAdapter/gharialAdapterSpec.js +++ b/js/apps/system/aardvark/test/specs/graphViewer/specAdapter/gharialAdapterSpec.js @@ -77,30 +77,33 @@ break; case "POST": if (req.url.match(/_api\/cursor$/)) { - req.success({result: - [ - [{ - vertex: node1, - path: { - edges: [], - vertices: [ - node1 - ] - } - - },{ - vertex: node2, - path: { - edges: [ - edge - ], - vertices: [ - node1, - node2 - ] - } - }] - ]}); + req.success({ + result: [ + [ + [{ + vertex: node1, + path: { + edges: [], + vertices: [ + node1 + ] + } + + },{ + vertex: node2, + path: { + edges: [ + edge + ], + vertices: [ + node1, + node2 + ] + } + }] + ] + ] + }); } 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("/"),