We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be70890 commit bb221adCopy full SHA for bb221ad
test/commands/multi.spec.js
@@ -210,6 +210,19 @@ describe("The 'multi' method", function () {
210
});
211
212
213
+ it('allows an array to be provided to hmset', function (done) {
214
+ client.multi()
215
+ .hmset("arrayhash", ['a', 'b', 'c'])
216
+ .hgetall("arrayhash")
217
+ .exec(function (err, replies) {
218
+ assert.strictEqual(null, err);
219
+ assert.equal("OK", replies[0]);
220
+ assert.equal(Object.keys(replies[1]).length, 3);
221
+ assert.equal("b", replies[1]['1']);
222
+ return done();
223
+ });
224
225
+
226
227
228
0 commit comments