1
0
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:
Matt Ranney
2011-11-15 15:21:49 -10:00
parent e39e8421bc
commit 69092a3f26
3 changed files with 26 additions and 20 deletions

View File

@@ -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);
});
};