You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
Fix explicitly passing undefined as callback
This commit is contained in:
@@ -89,6 +89,16 @@ describe("The 'set' method", function () {
|
||||
}, 100);
|
||||
});
|
||||
|
||||
it("sets the value correctly even if the callback is explicitly set to undefined", function (done) {
|
||||
client.set(key, value, undefined);
|
||||
setTimeout(function () {
|
||||
client.get(key, function (err, res) {
|
||||
helper.isString(value)(err, res);
|
||||
done();
|
||||
});
|
||||
}, 100);
|
||||
});
|
||||
|
||||
it("sets the value correctly with the array syntax", function (done) {
|
||||
client.set([key, value]);
|
||||
setTimeout(function () {
|
||||
|
Reference in New Issue
Block a user