You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
[GH-67] - hgetall now returns null instead of {} on empty reply
This commit is contained in:
4
test.js
4
test.js
@@ -670,9 +670,9 @@ tests.HGETALL = function () {
|
||||
tests.HGETALL_NULL = function () {
|
||||
var name = "HGETALL_NULL";
|
||||
|
||||
client.hgetall('missing', function (err, obj) {
|
||||
client.hgetall("missing", function (err, obj) {
|
||||
assert.strictEqual(null, err);
|
||||
assert.deepEqual([], obj);
|
||||
assert.strictEqual(null, obj);
|
||||
next(name);
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user