diff --git a/cmd.js b/cmd.js index d0d6960..f1beeae 100755 --- a/cmd.js +++ b/cmd.js @@ -20,7 +20,7 @@ function cb (pkgName, foundPath) { function log () { var header = 'Some npm-link\'ed packaged were found:' - console.error(header + '\n' + list.join('\n') + '\n') + console.log(header + '\n' + list.join('\n') + '\n') process.exitCode = 1 } diff --git a/test/test.js b/test/test.js index eeb86b5..da4c286 100644 --- a/test/test.js +++ b/test/test.js @@ -50,10 +50,10 @@ describe('simple project', function () { }) }) - it('should make cmd.js log an error', function (done) { + it('should make cmd.js log', function (done) { exec(CMD + pathToProject, function (err, stdout, stderr) { if (err) assert.ok(err) - assert.ok(/Some npm-link'ed packaged were found:/.test(stderr)) + assert.ok(/Some npm-link'ed packaged were found:/.test(stdout)) done() }) @@ -107,11 +107,11 @@ describe('nested project', function () { setTimeout(done, DELAY) }) - it('should make cmd.js throw an error', function (done) { + it('should make cmd.js log', function (done) { exec(CMD + pathToProject, function (err, stdout, stderr) { if (err) assert.ok(err) - assert.ok(/Some npm-link'ed packaged were found:/.test(stderr)) + assert.ok(/Some npm-link'ed packaged were found:/.test(stdout)) done() })