Skip to content

redundant code (not used) #14

Description

@killmenot

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions