From 96c6298a1c2970a5e64b6eea09eaedd96cbb86d7 Mon Sep 17 00:00:00 2001 From: Max Neunhoeffer Date: Thu, 20 Feb 2014 12:54:03 +0100 Subject: [PATCH] Please jslint. --- js/server/modules/org/arangodb/testing.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/server/modules/org/arangodb/testing.js b/js/server/modules/org/arangodb/testing.js index b814b2147a..bbbd953581 100644 --- a/js/server/modules/org/arangodb/testing.js +++ b/js/server/modules/org/arangodb/testing.js @@ -552,8 +552,9 @@ function rubyTests (options, ssl) { var files = fs.list(fs.join("UnitTests","HttpInterface")); var result = {}; var args; + var i; for (i = 0; i < files.length; i++) { - n = files[i]; + var n = files[i]; if (n.substr(0,4) === "api-" && n.substr(-3) === ".rb") { print("Considering",n,"..."); if ((n.indexOf("-cluster-") === -1 || options.cluster) && @@ -562,8 +563,8 @@ function rubyTests (options, ssl) { args = ["--color", "-I", fs.join("UnitTests","HttpInterface"), "--format", "d", "--require", tmpname, fs.join("UnitTests","HttpInterface",n)]; - pid = executeExternal("rspec", args); - r = statusExternal(pid, true); + var pid = executeExternal("rspec", args); + var r = statusExternal(pid, true); result[n] = r.exit; if (r.exit !== 0 && !options.force) { break;