You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
Add jshint and fix errors accordingly (including broken tests)
This commit is contained in:
@@ -1,9 +1,18 @@
|
||||
'use strict';
|
||||
|
||||
var assert = require("assert");
|
||||
var path = require('path');
|
||||
var config = require("./lib/config");
|
||||
var RedisProcess = require("./lib/redis-process");
|
||||
var rp;
|
||||
|
||||
function startRedis (conf, done) {
|
||||
RedisProcess.start(function (err, _rp) {
|
||||
rp = _rp;
|
||||
return done(err);
|
||||
}, path.resolve(__dirname, conf));
|
||||
}
|
||||
|
||||
// don't start redis every time we
|
||||
// include this helper file!
|
||||
if (!process.env.REDIS_TESTS_STARTED) {
|
||||
@@ -108,11 +117,4 @@ module.exports = {
|
||||
process.removeListener('uncaughtException', mochaListener);
|
||||
return mochaListener;
|
||||
}
|
||||
}
|
||||
|
||||
function startRedis (conf, done) {
|
||||
RedisProcess.start(function (err, _rp) {
|
||||
rp = _rp;
|
||||
return done(err);
|
||||
}, path.resolve(__dirname, conf));
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user