Describe the bug
Unable to test methods on the same contract
Reproduction steps
it('should call a method on the same contract and test it', async () => {
someContract.check.returns(false);
const result = await someContract.doCheck(arg1, arg2, arg3);
expect(result).to.be.false;
expect(someContract.check).to.have.been.calledWith(arg1, arg2, arg3);
});
Expected behavior
It should have a function call on check method, with those arguments supplied.
Describe the bug Unable to test methods on the same contract
Reproduction steps
Expected behavior
It should have a function call on
check
method, with those arguments supplied.