diff --git a/js/server/modules/org/arangodb/testing.js b/js/server/modules/org/arangodb/testing.js index 2d1f6ab8e6..82f9ee7ccf 100644 --- a/js/server/modules/org/arangodb/testing.js +++ b/js/server/modules/org/arangodb/testing.js @@ -786,7 +786,13 @@ function runInArangosh (options, instanceInfo, file, addArgs) { catch(x) { return rc; } - return result[0]; + if (result[0].HasOwnProperty('status')) { + return result[0]; + } + else { + // Jasmine tests... + return rc; + } } function runArangoshCmd (options, instanceInfo, cmds) {