1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

Remove print helper

This commit is contained in:
Ruben Bridgewater
2016-12-17 17:19:13 +01:00
committed by Ruben Bridgewater
parent 47242b342a
commit ce3227dedd
9 changed files with 24 additions and 78 deletions

View File

@ -60,30 +60,6 @@ describe('utils.js', function () {
});
});
describe('print helper', function () {
it('callback with reply', function () {
var text = '';
var unhookIntercept = intercept(function (data) {
text += data;
return '';
});
utils.print(null, 'abc');
unhookIntercept();
assert.strictEqual(text, 'Reply: abc\n');
});
it('callback with error', function () {
var text = '';
var unhookIntercept = intercept(function (data) {
text += data;
return '';
});
utils.print(new Error('Wonderful exception'));
unhookIntercept();
assert.strictEqual(text, 'Error: Wonderful exception\n');
});
});
describe('reply_in_order', function () {
var err_count = 0;