Skip to content

Commit eb06757

Browse files
committed
Removed logging during tests
1 parent 73a36b5 commit eb06757

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/setup.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,10 @@ before(function flushRedis(cb) {
66
var client = redis.createClient();
77
client.flushdb(cb);
88
});
9+
10+
11+
before(function removeLogging() {
12+
// Disable logging while testing
13+
var log = require('../lib/index.js').log;
14+
log.info = log.warn = log.error = function() {};
15+
});

0 commit comments

Comments
 (0)