2

How do I stub out contract functions while testing in truffle in javascript.

Normally in mocha I would import sinon and do a sinon.stub command.

It doesnt seem that I can import npm modules into the truffle testsuite.

I would like to test against the callcount and args of the transfer method in my contract.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.