Lesson 9 - Unit test fist stage - 0 test pass #2959
-
Hi guys, i am at the fist stage of the unit test, i am getting 0 pass result. Can someone help, please?
Raffle.sol
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
@Leonardll : Make these changes in your test file :
Your updated test should look like this :
Let me know, If it resolves your issue! If it doesn't then send me your |
Beta Was this translation helpful? Give feedback.
-
If it is not solved by then, please tag me after ~12 hours from now; I will look into it (do not have my PC configured at the moment). |
Beta Was this translation helpful? Give feedback.
@Leonardll : Make these changes in your test file :
From this :
const { deployer } = await getNamedAccounts()
To this :deployer = (await getNamedAccounts()).deployer
And also declare the
deployer
in this line :let raffle, vrfCoordinatorV2Mock, interval, deployer
Like this!Also declare your
interval
in yourbeforeEach
Your updated test should look like this :