|
function isStub(stub) { |
|
if (!stub) { |
|
return false; |
|
} |
|
|
|
if (method.proxy && method.proxy.isSinonProxy) { |
|
verifyIsStub(method.proxy); |
|
} else { |
|
if (typeof method !== "function") { |
|
assert.fail(method + " is not a function"); |
|
} |
|
|
|
if (typeof method.getCall !== "function") { |
|
assert.fail(method + " is not stubbed"); |
|
} |
|
} |
|
} |
Also, verifyIsStub function inside it is not defined
P.S.
Was introduced here
sinon/should-sinon.js
Lines 26 to 42 in 3d1841d
Also,
verifyIsStubfunction inside it is not definedP.S.
Was introduced here