Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cypress/sinon-chai

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cypress/sinon-chai - npm Package Compare versions

Comparing version 1.1.0 to 2.9.0

25

lib/sinon-chai.js

@@ -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 @@ }

31

package.json

@@ -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"
}
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc