sinon
Advanced tools
Comparing version 6.3.1 to 6.3.2
6.3.2 / 2018-09-13 | ||
================== | ||
* Adds guard for empty properties in deepEqual when a matcher is provided (#1901) | ||
6.3.1 / 2018-09-12 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -41,7 +41,8 @@ "use strict"; | ||
if (matcher) { | ||
var allKeysMatch = every(Object.keys(a), function (key) { | ||
var keys = Object.keys(a); | ||
var allKeysMatch = every(keys, function (key) { | ||
return matcher(a[key], b[key]); | ||
}); | ||
return allKeysMatch; | ||
return keys.length > 0 && allKeysMatch; | ||
} | ||
@@ -48,0 +49,0 @@ |
{ | ||
"name": "sinon", | ||
"description": "JavaScript test spies, stubs and mocks.", | ||
"version": "6.3.1", | ||
"version": "6.3.2", | ||
"homepage": "https://sinonjs.org/", | ||
@@ -6,0 +6,0 @@ "author": "Christian Johansen", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
4602043
54101