changeEtherBalance()
just passes the test with any value
#5583
Labels
changeEtherBalance()
just passes the test with any value
#5583
Version of Hardhat
2.22.7, 2.12.5, 2.20.1
What happened?
Hi! I'm working out in my hardhat test codes, using
hardhat-chai-matchers
but i found the test case just passes with any value if u use
changeEtherBalance()
even it is empty inside.if u using
changeEtherBalance()
, it passes the it() case with any value or none inexpect()
too.If u need more detail about this case, I'll gladly help!
Thanks :)
Minimal reproduction steps
make any test file in the test directory, and run it with
npx hardhat test test/[filename].test.js
even it appear same in hardhat-boilerplate clone too! https://github.com/NomicFoundation/hardhat-boilerplate
u can see it even passes the test if u put anything or nothing both
expect()
andchangeEtherBalance()
.Search terms
changeEtherBalance
The text was updated successfully, but these errors were encountered: