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

unexpected-sinon

Package Overview
Dependencies
Maintainers
4
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 10.7.1 to 10.8.0

documentation/assertions/spy/not-to-have-calls-satisfying.md

4

bootstrap-unexpected-markdown.js

@@ -7,3 +7,5 @@ /*global unexpected:true, sinon, Promise:true*/

require('./test/monkeyPatchSinonStackFrames');
Promise = require('rsvp');
if (typeof Promise === 'undefined') {
Promise = require('rsvp').Promise;
}
sinon = require('sinon');

@@ -645,3 +645,6 @@ /*global location*/

expect.addAssertion('<spy|array|sinonSandbox|sinonStubInstance> to have no calls [exhaustively] satisfying <object>', function (expect, subject, value) {
expect.addAssertion([
'<spy|array|sinonSandbox|sinonStubInstance> to have no calls [exhaustively] satisfying <object>',
'<spy|array|sinonSandbox|sinonStubInstance> not to have calls [exhaustively] satisfying <object>'
], function (expect, subject, value) {
var spies = extractSpies(subject);

@@ -680,7 +683,13 @@ var keys = Object.keys(value);

expect.addAssertion('<spy|array|sinonSandbox|sinonStubInstance> to have no calls [exhaustively] satisfying <array>', function (expect, subject, value) {
expect.addAssertion([
'<spy|array|sinonSandbox|sinonStubInstance> to have no calls [exhaustively] satisfying <array>',
'<spy|array|sinonSandbox|sinonStubInstance> not to have calls [exhaustively] satisfying <array>'
], function (expect, subject, value) {
return expect(subject, 'to have no calls [exhaustively] satisfying', { args: value });
});
expect.addAssertion('<spy|array|sinonSandbox|sinonStubInstance> to have no calls satisfying <function>', function (expect, subject, value) {
expect.addAssertion([
'<spy|array|sinonSandbox|sinonStubInstance> to have no calls satisfying <function>',
'<spy|array|sinonSandbox|sinonStubInstance> not to have calls satisfying <function>'
], function (expect, subject, value) {
var spies = extractSpies(subject);

@@ -687,0 +696,0 @@ var expectedSpyCallSpecs = recordSpyCalls(spies, value);

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

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

"unexpected": "10.23.0",
"unexpected-documentation-site-generator": "^4.2.3",
"unexpected-markdown": "1.4.1"
"unexpected-documentation-site-generator": "^4.5.0",
"unexpected-markdown": "1.7.2"
}
}

Sorry, the diff of this file is not supported yet

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

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