Closed mapolonio closed 5 years ago
Just stumbled upon this issue. Can it be fixed?
I ended up doing something like this
const originalMethod = client.saddAsync;
client.saddAsync = function(...args) {
return originalMethod(..._.flatten(args));
};
@yeahoffline I've just created a PR to fix this issue. Can you have a look at it? Thanks.
In the node_redis official documentation they state that arrays can be used along with individual arguments (see https://github.com/NodeRedis/node_redis#sending-commands). But in redis-mock the behaviour is not the same:
(I have promisified the client)