cli-logger
Advanced tools
Comparing version 0.5.23 to 0.5.25
@@ -346,3 +346,3 @@ var EventEmitter = require('events').EventEmitter; | ||
if(err) { | ||
message = err.message || arguments[2]; | ||
message = arguments[2] || err.message; | ||
parameters = (err.parameters || parameters || []).slice(0); | ||
@@ -349,0 +349,0 @@ } |
{ | ||
"name": "cli-logger", | ||
"version": "0.5.23", | ||
"version": "0.5.25", | ||
"description": "Logger implementation for command line interfaces", | ||
@@ -32,3 +32,3 @@ "author": "muji <noop@xpm.io>", | ||
"bunyan": "~0.22.1", | ||
"mocha": "~1.17.0", | ||
"mocha": "~1.21.4", | ||
"chai": "~1.8.1", | ||
@@ -42,5 +42,5 @@ "istanbul": "~0.2.4" | ||
"clean": "rm -f log/*.log", | ||
"test": "istanbul cover _mocha -- -u bdd --recursive --bail --reporter list -A test/unit/" | ||
"test": "istanbul cover _mocha -- -u bdd --recursive --reporter list -A test/unit/" | ||
}, | ||
"config": {} | ||
} |
@@ -10,6 +10,6 @@ var expect = require('chai').expect; | ||
}) | ||
afterEach(function(done) { | ||
console.log = method; | ||
done(); | ||
}) | ||
//afterEach(function(done) { | ||
//console.log = method; | ||
//done(); | ||
//}) | ||
it('should log trace message to console.log', function(done) { | ||
@@ -24,2 +24,4 @@ var name = 'mock-console-logger'; | ||
expect(arguments[1]).to.eql(param); | ||
// have to revert method here for mocha to be ok | ||
console.log = method; | ||
done(); | ||
@@ -26,0 +28,0 @@ } |
118207
2937