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

Remove code overhead

Add another domain test

Fix test on node 0.10
This commit is contained in:
Ruben Bridgewater
2016-03-14 22:31:59 +01:00
parent f75b38a3e2
commit ff19663d9d
61 changed files with 127 additions and 131 deletions

View File

@ -14,13 +14,11 @@ describe("The 'select' method", function () {
var client;
beforeEach(function (done) {
client = redis.createClient.apply(redis.createClient, args);
client = redis.createClient.apply(null, args);
client.once("ready", function () {
client.quit();
});
client.on('end', function () {
return done();
});
client.on('end', done);
});
it("returns an error if redis is not connected", function (done) {
@ -36,7 +34,7 @@ describe("The 'select' method", function () {
var client;
beforeEach(function (done) {
client = redis.createClient.apply(redis.createClient, args);
client = redis.createClient.apply(null, args);
client.once("ready", function () {
client.flushdb(done);
});