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

unexpected-sinon

Package Overview
Dependencies
Maintainers
5
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unexpected-sinon - npm Package Compare versions

Comparing version

to
10.11.1

karma.conf.js

2

documentation/index.md

@@ -24,3 +24,3 @@ ---

Here is an example an example stolen from
Here is an example stolen from
[Gary Bernhardt](https://twitter.com/garybernhardt).

@@ -27,0 +27,0 @@

@@ -136,3 +136,5 @@ /*global location, define*/

};
for (var propertyName in spy) {
var propertyNames = Object.getOwnPropertyNames(spy);
for (var i = 0; i < propertyNames.length; i += 1) {
var propertyName = propertyNames[i];
if (

@@ -1076,5 +1078,13 @@ spy.hasOwnProperty(propertyName) &&

var deprecationWarningDisplayed = false;
expect.addAssertion(
'<spy> was [always] called with [exactly] <any*>',
function(expect, subject) {
if (!deprecationWarningDisplayed) {
console.warn(
"unexpected-sinon: The 'was [always] called with [exactly]' assertion is deprecated.\nPlease use 'to have a call satisfying' instead:\n" +
'http://unexpected.js.org/unexpected-sinon/assertions/spy/to-have-a-call-satisfying/'
);
deprecationWarningDisplayed = true;
}
expect.errorMode = 'defaultOrNested';

@@ -1081,0 +1091,0 @@ var args;

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

@@ -21,10 +21,10 @@ "keywords": [

"lint": "eslint .",
"test": "mocha --compilers md:unexpected-markdown test/*.js `find documentation -name '*.md'`",
"phantom": "phantomjs ./node_modules/mocha-phantomjs-core/mocha-phantomjs-core.js test/tests.html spec \"`node -pe 'JSON.stringify({useColors:true,grep:process.env.grep})'`\"",
"ci": "npm test && npm run phantom && npm run coverage && (<coverage/lcov.info coveralls || true) && npm run lint && npm run generate-site",
"test": "mocha --require unexpected-markdown test/*.js `find documentation -name '*.md'`",
"test-headless": "karma start --single-run",
"ci": "npm test && npm run test-headless && npm run coverage && (<coverage/lcov.info coveralls || true) && npm run lint && npm run generate-site",
"test-browser": "serve .",
"coverage": "NODE_ENV=development istanbul cover _mocha -- --reporter dot && echo google-chrome coverage/lcov-report/index.html",
"coverage": "nyc --reporter=lcov --reporter=text npm test && echo google-chrome coverage/lcov-report/index.html",
"generate-site": "generate-site --require ./bootstrap-unexpected-markdown.js",
"update-examples": "generate-site --require ./bootstrap-unexpected-markdown.js --update-examples",
"deploy-site": "deploy-site.sh"
"deploy-site": "deploy-site"
},

@@ -42,7 +42,9 @@ "main": "./lib/unexpected-sinon.js",

"eslint-plugin-prettier": "^3.0.0",
"istanbul": "^0.4.5",
"karma": "^3.1.4",
"karma-chrome-launcher": "^2.2.0",
"karma-mocha": "^1.3.0",
"mocha": "^5.1.0",
"mocha-phantomjs-core": "^2.0.1",
"phantomjs-prebuilt": "^2.1.7",
"prettier": "^1.15.3",
"nyc": "^13.1.0",
"prettier": "~1.16.0",
"puppeteer": "^1.11.0",
"rsvp": "^4.8.2",

@@ -52,5 +54,10 @@ "serve": "*",

"unexpected": "^11.0.0-4",
"unexpected-documentation-site-generator": "^5.0.0",
"unexpected-markdown": "^2.0.0"
"unexpected-documentation-site-generator": "^6.0.0",
"unexpected-markdown": "^3.0.0"
},
"nyc": {
"include": [
"lib/**"
]
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display