lesson 7 fund unit test error #3172
Replies: 4 comments
-
const { getNamedAccounts, deployments, ethers } = require("hardhat"); beforeEach(async function () { |
Beta Was this translation helpful? Give feedback.
-
this is my unit test file |
Beta Was this translation helpful? Give feedback.
-
I had the same problem. Some things I noticed while getting this working:
Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
@dhawantomar : I have made a PR in your ( Hardhat-fund-me ) repo, Merge it and try it out! After Merging, It should work just fine! Let me know, If it resolves your issue! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
constructor
✓ sets the aggregator addresses correctly
fund
1 passing (2s)
1 failing
fund
Fail if you don't send enough ETH:
AssertionError: Expected transaction to be reverted with you need to spend more ETH!, but other exception was thrown: Error: VM Exception while processing transaction: reverted with reason string 'You need to spend more ETH!'
this is error when i test
Beta Was this translation helpful? Give feedback.
All reactions