1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +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

@@ -105,13 +105,11 @@ describe("The 'multi' method", function () {
describe("when not connected", function () {
beforeEach(function (done) {
client = redis.createClient.apply(redis.createClient, args);
client = redis.createClient.apply(null, args);
client.once("ready", function () {
client.quit();
});
client.once('end', function () {
return done();
});
client.once('end', done);
});
it("reports an error", function (done) {
@@ -133,7 +131,7 @@ describe("The 'multi' method", function () {
describe("when connected", function () {
beforeEach(function (done) {
client = redis.createClient.apply(redis.createClient, args);
client = redis.createClient.apply(null, args);
client.once("connect", done);
});
@@ -212,7 +210,7 @@ describe("The 'multi' method", function () {
describe("when ready", function () {
beforeEach(function (done) {
client = redis.createClient.apply(redis.createClient, args);
client = redis.createClient.apply(null, args);
client.once("ready", function () {
client.flushdb(function (err) {
return done(err);