You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2015/06/07 23:20:10 UTC

[2/2] incubator-ignite git commit: #nodejs: debug

#nodejs: debug


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/bf7812e1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/bf7812e1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/bf7812e1

Branch: refs/heads/ignite-nodejs
Commit: bf7812e130472b685441f6e5ff0d917df54c6f61
Parents: 0be954f
Author: ivasilinets <iv...@gridgain.com>
Authored: Mon Jun 8 00:20:03 2015 +0300
Committer: ivasilinets <iv...@gridgain.com>
Committed: Mon Jun 8 00:20:03 2015 +0300

----------------------------------------------------------------------
 modules/nodejs/src/test/nodejs/test_ignition.js | 2 ++
 modules/nodejs/src/test/nodejs/test_utils.js    | 9 ++++++++-
 2 files changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/bf7812e1/modules/nodejs/src/test/nodejs/test_ignition.js
----------------------------------------------------------------------
diff --git a/modules/nodejs/src/test/nodejs/test_ignition.js b/modules/nodejs/src/test/nodejs/test_ignition.js
index da02039..388278b 100644
--- a/modules/nodejs/src/test/nodejs/test_ignition.js
+++ b/modules/nodejs/src/test/nodejs/test_ignition.js
@@ -1,3 +1,5 @@
+exports = module.exports = {};
+
 function TestIgnition () {
 }
 

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/bf7812e1/modules/nodejs/src/test/nodejs/test_utils.js
----------------------------------------------------------------------
diff --git a/modules/nodejs/src/test/nodejs/test_utils.js b/modules/nodejs/src/test/nodejs/test_utils.js
index 93a08ce..d7ec458 100644
--- a/modules/nodejs/src/test/nodejs/test_utils.js
+++ b/modules/nodejs/src/test/nodejs/test_utils.js
@@ -111,9 +111,16 @@ TestUtils.testDone = function() {
  */
 TestUtils.runTest = function() {
     var fileName = process.argv[2].toString().trim();
+
+    console.log("FileName " + fileName);
+
     var Test = require(fileName);
+
+    console.log("Test : " + Object.keys(Test))
+
     Test = Test[Object.keys(Test)[0]];
-    console.log(Test);
+
+    console.log("Result test: " + Test);
     var functionName = process.argv[3].toString().trim();
 
     if (!Test[functionName]) {