New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More →

unexpected-sinon

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unexpected-sinon - npm Package Compare versions

Comparing version

to
6.1.2

@@ -33,2 +33,13 @@ // Copyright (c) 2013 Sune Simonsen <sune@we-knowhow.dk>

}(this, function (sinon) {
var objectIs = Object.is || function (a, b) {
// Polyfill from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
if (a === 0 && b === 0) {
return 1 / a === 1 / b;
}
if (a !== a) {
return b !== b;
}
return a === b;
};
function isSpy(value) {

@@ -166,3 +177,3 @@ return value && typeof value.id === 'string' &&

function convertArgumentWithKey(key) {
return Object.is(subject[key], value[key]) ?
return objectIs(subject[key], value[key]) ?
expect.it('to be', value[key]) :

@@ -169,0 +180,0 @@ convertSinonMatchers(expect, value[key]);

{
"name": "unexpected-sinon",
"version": "6.1.1",
"version": "6.1.2",
"author": "Sune Sloth Simonsen <sune@we-knowhow.dk>",

@@ -5,0 +5,0 @@ "keywords": [