Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redundant code (not used) #14

Open
killmenot opened this issue Nov 9, 2017 · 0 comments
Open

redundant code (not used) #14

killmenot opened this issue Nov 9, 2017 · 0 comments

Comments

@killmenot
Copy link

killmenot commented Nov 9, 2017

sinon/should-sinon.js

Lines 26 to 42 in 3d1841d

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant