Error while following examples while writing test. Already used -> await expect(fundMe.fund()).to.be.revertedWith("you need to spend more ETH!" ); BUT error still says fails if you don't send enough ETH. #5344
Unanswered
Glow-in-the-dark
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Hello that means that in your contract you did set the error to didn't send enough so to fix the issue you need to go to your contract and change the error to you need to spend more ETH like this
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Followed the tutorial here : https://youtu.be/gyMwXuJrbJQ?t=40731
However, when I run the test, i have errors:

This is my FundMe.test.js script.
Beta Was this translation helpful? Give feedback.
All reactions