-
Notifications
You must be signed in to change notification settings - Fork 37
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
should works, expect doesn't #10
Comments
any updates? |
Is I am unable to reproduce using the following example: var BigNumber = require('bignumber.js');
var chai = require('chai');
var expect = require('chai').expect
chai.use(require('chai-bignumber')(BigNumber));
var result = new BigNumber("100000000000000000").plus(1);
var expected = "100000000000000001";
expect(result).to.be.bignumber.equal(expected); |
Any update? Weird, for my setup, In "../../utils/chai-setup" I have:
|
Hey @colinsteidtmann, I have not found a solution for this package, but I can wholeheartedly recommend switching to TypeScript. I made the switch in the meantime and it has enhanced my development productivity. See my solidity-template, which comes with Waffle - a testing framework for Ethereum contracts that includes the functionality implemented by |
Hey Paul, that's funny, I'm actually using your template! You just didn't have any examples working with bignumbers so I went looking for a solution. I'll check out |
@colinsteidtmann can you provide a complete example? |
Oh haha!
You don't need a package like |
Here's the example from the README:
It works fine. But, if I replace the last line with:
I get the following error:
Versions:
• node 10.15.3
• [email protected]
• [email protected]
The text was updated successfully, but these errors were encountered: