From f8b9de750f0962d22182fbdb4b4c2d5becc16ab4 Mon Sep 17 00:00:00 2001 From: Jared Allard Date: Wed, 24 Feb 2016 22:03:12 -0800 Subject: [PATCH] tests: actually output from the right command --- test/test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test.js b/test/test.js index 8ead412..338da76 100644 --- a/test/test.js +++ b/test/test.js @@ -67,6 +67,10 @@ const compileTest = function(test, cb) { return cb(err); }); + + testinst.stdout.on('data', function(d) { + process.stdout.write(d.toString('ascii')); + }); }); }; @@ -122,10 +126,6 @@ const runTest = function(test, args, cb) { return cb(false); } }); - - testinst.stdout.on('data', function(d) { - process.stdout.write(d.toString('ascii')); - }) } console.log('NOTICE: The first test may take awhile as it may compile Node.js');