unexpected-sinon
Advanced tools
Comparing version 10.7.1 to 10.8.0
@@ -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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
422537
32
7533
1