1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

Fix and add more tests

This commit is contained in:
Ruben Bridgewater
2015-09-17 05:16:36 +02:00
parent 621c511229
commit f543d45d1f
47 changed files with 14 additions and 57 deletions

View File

@@ -23,7 +23,6 @@ describe("The 'multi' method", function () {
beforeEach(function (done) {
client = redis.createClient.apply(redis.createClient, args);
client.once("error", done);
client.once("connect", function () {
client.quit();
});
@@ -46,7 +45,6 @@ describe("The 'multi' method", function () {
beforeEach(function (done) {
client = redis.createClient.apply(redis.createClient, args);
client.once("error", done);
client.once("connect", function () {
client.flushdb(function (err) {
return done(err);
@@ -298,6 +296,17 @@ describe("The 'multi' method", function () {
});
});
it("should work without any callback", function (done) {
helper.serverVersionAtLeast.call(this, client, [2, 6, 5]);
var multi = client.multi();
multi.set("baz", "binary");
multi.set("foo", "bar");
multi.exec();
client.get('foo', helper.isString('bar', done));
});
});
});
});