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

Some small code style changes

Revert some done stuff
This commit is contained in:
Ruben Bridgewater
2015-09-01 21:45:54 +02:00
parent 9acbd6c860
commit ba779ac361
3 changed files with 12 additions and 8 deletions

View File

@@ -88,9 +88,9 @@ describe("The 'mset' method", function () {
describe("and no callback is specified", function () {
describe("with valid parameters", function () {
it("sets the value correctly", function (done) {
client.mset(key, value, key2, value2);
client.get(key, helper.isString(value));
client.get(key2, helper.isString(value2, done));
client.mset(key, value2, key2, value);
client.get(key, helper.isString(value2));
client.get(key2, helper.isString(value, done));
});
});

View File

@@ -124,19 +124,23 @@ describe("The node_redis client", function () {
client.on("connect", function on_connect() {
async.parallel([function (cb) {
client.get("recon 1", function (err, res) {
helper.isString("one", cb)(err, res);
helper.isString("one")(err, res);
cb();
});
}, function (cb) {
client.get("recon 1", function (err, res) {
helper.isString("one", cb)(err, res);
helper.isString("one")(err, res);
cb();
});
}, function (cb) {
client.get("recon 2", function (err, res) {
helper.isString("two", cb)(err, res);
helper.isString("two")(err, res);
cb();
});
}, function (cb) {
client.get("recon 2", function (err, res) {
helper.isString("two", cb)(err, res);
helper.isString("two")(err, res);
cb();
});
}], function (err, results) {
client.removeListener("connect", on_connect);