yeahoffline / redis-mock

Node.js redis client mock
213 stars 111 forks source link

HMGET returning undefined instead of null for undefined keys #76

Closed duartemendes closed 6 years ago

duartemendes commented 6 years ago

As stated in redis commands and to respect the redis package behaviour, the HMGET should return null instead of undefined for fields that are not defined.

For: redisClient.hmget("hash", "field1", "field2", "field3") Expected: [null, null, null] Actual: [undefined, undefined, undefined]