node-redis-mock
Advanced tools
Comparing version 0.2.15 to 0.2.16
@@ -206,3 +206,8 @@ /*! | ||
for (var i = 0; i < keys.length; i++) { | ||
values.push(hash[keys[i]]); | ||
if(hash[keys[i]]){ | ||
values.push(hash[keys[i]]); | ||
} | ||
else{ | ||
values.push(null); | ||
} | ||
} | ||
@@ -209,0 +214,0 @@ |
@@ -6,2 +6,3 @@ /*! | ||
exports.multi = function (mockInstance, RedisClient) { | ||
var self = this; | ||
@@ -22,3 +23,3 @@ var multiqueue = { | ||
}); | ||
command.fn.apply(null, command.args); | ||
command.fn.apply(self, command.args); | ||
} | ||
@@ -42,3 +43,3 @@ } | ||
_fnAndNames(RedisClient.prototype, function(fn, fnName) { | ||
if(fnName !== 'multi' || fnName !== 'MULTI') { | ||
if(fnName !== 'multi' && fnName !== 'MULTI') { | ||
multiqueue[fnName] = function() { | ||
@@ -45,0 +46,0 @@ var args = Array.prototype.slice.call(arguments); |
{ | ||
"name": "node-redis-mock", | ||
"version": "0.2.15", | ||
"version": "0.2.16", | ||
"description": "Redis client mock object for unit testing", | ||
@@ -12,3 +12,3 @@ "author": "Kristian Faeldt <kristian.faeldt@gmail.com>", | ||
"devDependencies": { | ||
"should": "*", | ||
"should": "3.3.2", | ||
"mocha": "*", | ||
@@ -15,0 +15,0 @@ "redis": "*" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
123283
3510