Skip to content

Commit

Permalink
fix showLevel off case in console-test
Browse files Browse the repository at this point in the history
  • Loading branch information
james.yang authored and indexzero committed Feb 5, 2015
1 parent 72bff04 commit 54d0d65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/transports/console-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ vows.describe('winston/transports/console').addBatch({
assert.equal(line, 'info: \n');
}
},
"with showLevel on": {
"with showLevel off": {
topic : function() {
npmTransport.showLevel = false;
stdMocks.use();
Expand All @@ -43,7 +43,7 @@ vows.describe('winston/transports/console').addBatch({
var output = stdMocks.flush(),
line = output.stdout[0];

assert.equal(line, '\n');
assert.equal(line, undefined);
}
},
"with npm levels": {
Expand Down

0 comments on commit 54d0d65

Please sign in to comment.