@cypress/sinon-chai
Advanced tools
Comparing version 1.1.0 to 2.9.0
@@ -129,3 +129,26 @@ "use strict"; | ||
this._obj, action, passedSuffix, failedSuffix, shouldBeAlways, slice.call(arguments)); | ||
this.assert(expression, messages.affirmative, messages.negative); | ||
var actual; | ||
var expected; | ||
if (!passed) { | ||
if (sinonMethodName.indexOf("calledWith") === 0) { | ||
var lastCall = this._obj.lastCall || this._obj; | ||
actual = lastCall.args && lastCall.args; | ||
if (this._obj.callCount === 0) { | ||
actual = undefined; | ||
} | ||
expected = slice.call(arguments); | ||
} | ||
} | ||
var enableDiff = !passed; | ||
this.assert( | ||
expression, | ||
messages.affirmative, | ||
messages.negative, | ||
expected, | ||
actual, | ||
enableDiff | ||
); | ||
}; | ||
@@ -132,0 +155,0 @@ } |
@@ -16,6 +16,6 @@ { | ||
], | ||
"version": "1.1.0", | ||
"version": "2.9.0", | ||
"author": "Domenic Denicola <d@domenic.me> (https://domenic.me/)", | ||
"license": "(BSD-2-Clause OR WTFPL)", | ||
"repository": "domenic/sinon-chai", | ||
"repository": "cypress-io/sinon-chai", | ||
"main": "./lib/sinon-chai.js", | ||
@@ -32,3 +32,3 @@ "files": [ | ||
"commit": "commit-wizard", | ||
"semantic-release": "semantic-release pre && npm publish --access public && semantic-release post" | ||
"semantic-release": "semantic-release" | ||
}, | ||
@@ -38,3 +38,2 @@ "devDependencies": { | ||
"coffee-script": "~1.8.0", | ||
"condition-circle": "^1.5.0", | ||
"eslint": "^3.19.0", | ||
@@ -44,23 +43,5 @@ "istanbul": "~0.4.5", | ||
"opener": "^1.4.3", | ||
"pre-git": "^3.15.0", | ||
"semantic-release": "^6.3.6", | ||
"sinon": "^2.3.4", | ||
"simple-commit-message": "^3.0.2" | ||
}, | ||
"release": { | ||
"verifyConditions": "condition-circle", | ||
"analyzeCommits": "simple-commit-message" | ||
}, | ||
"config": { | ||
"pre-git": { | ||
"commit-msg": "simple", | ||
"pre-commit": [ | ||
"npm test" | ||
], | ||
"pre-push": [], | ||
"post-commit": [], | ||
"post-checkout": [], | ||
"post-merge": [] | ||
} | ||
"semantic-release": "^15.13.16", | ||
"sinon": "^2.3.4" | ||
} | ||
} | ||
} |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
18307
8
163