chaijs / chai

BDD / TDD assertion framework for node.js and the browser that can be paired with any testing framework.
https://chaijs.github.io
MIT License
8.11k stars 694 forks source link

Comparison of bignumber in closeTo & within #1403

Open ShivamDev31 opened 3 years ago

ShivamDev31 commented 3 years ago

Hi team,

I'm using chai to test my smart contracts and all the numbers returned from contracts are BigNumber. Now there are a lot of usecases where I need to use closeTo & within but both of there uses number and does not support BigNumber. I tried a lot of ways but none of them worked. So is there a solution for this? TIA

chichke commented 2 years ago

Same here :/