1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Implemented HGETALL response as object

This commit is contained in:
Tj Holowaychuk
2010-09-17 14:52:32 -07:00
parent 0b3a1c3eaa
commit bcbf3834e1
2 changed files with 11 additions and 1 deletions

View File

@@ -355,7 +355,7 @@ tests.HGETALL = function () {
client.hmset(["hosts", "mjr", "1", "another", "23", "home", "1234"], require_string("OK", name));
client.HGETALL(["hosts"], function (err, obj) {
assert.strictEqual(null, err, name + " result sent back unexpected error");
assert.strictEqual(6, Object.keys(obj).length, name);
assert.strictEqual(3, Object.keys(obj).length, name);
assert.ok(Buffer.isBuffer(obj.mjr), name);
assert.strictEqual("1", obj.mjr.toString(), name);
assert.strictEqual("23", obj.another.toString(), name);