You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
Fix test for optional subscribe callback.
This commit is contained in:
4
test.js
4
test.js
@@ -471,9 +471,7 @@ tests.SUBSCRIBE = function () {
|
|||||||
client1.set("did a thing", 1, require_string("OK", name));
|
client1.set("did a thing", 1, require_string("OK", name));
|
||||||
client1.subscribe("chan1", "chan2", function (err, results) {
|
client1.subscribe("chan1", "chan2", function (err, results) {
|
||||||
assert.strictEqual(null, err, "result sent back unexpected error: " + err);
|
assert.strictEqual(null, err, "result sent back unexpected error: " + err);
|
||||||
assert.strictEqual(2, results.length, name);
|
assert.strictEqual("chan1", results.toString(), name);
|
||||||
assert.strictEqual("chan1", results[0].toString(), name);
|
|
||||||
assert.strictEqual(1, results[1], name);
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user