Update checked-in dependencies
This commit is contained in:
parent
3ba511a8f1
commit
1c4c64199f
175 changed files with 13227 additions and 15136 deletions
7
node_modules/sinon/lib/sinon/proxy-call-util.js
generated
vendored
7
node_modules/sinon/lib/sinon/proxy-call-util.js
generated
vendored
|
|
@ -27,7 +27,7 @@ exports.delegateToCalls = function delegateToCalls(
|
|||
notCalled,
|
||||
totalCallCount
|
||||
) {
|
||||
proxy[method] = function() {
|
||||
proxy[method] = function () {
|
||||
if (!this.called) {
|
||||
if (notCalled) {
|
||||
return notCalled.apply(this, arguments);
|
||||
|
|
@ -45,7 +45,10 @@ exports.delegateToCalls = function delegateToCalls(
|
|||
|
||||
for (var i = 0, l = this.callCount; i < l; i += 1) {
|
||||
currentCall = this.getCall(i);
|
||||
var returnValue = currentCall[actual || method].apply(currentCall, arguments);
|
||||
var returnValue = currentCall[actual || method].apply(
|
||||
currentCall,
|
||||
arguments
|
||||
);
|
||||
push(returnValues, returnValue);
|
||||
if (returnValue) {
|
||||
matches += 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue