Lesson 9 AssertionError: expected undefined to equal false AssertionError: Unspecified AssertionError #2063
Answered
by
SatamSai
SidharthK2
asked this question in
Q&A
-
output from yarn hardhat test |
Beta Was this translation helpful? Give feedback.
Answered by
SatamSai
Aug 25, 2022
Replies: 2 comments
-
@SidharthK2 : I have debugged your code and have made a PR in your repo, You can merge it. Hopefully, Everything will work just fine now! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
SidharthK2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
upkeepNeeded variable name should match in both Raffle.sol and Raffle.test.js
Also talking about other tests which works with different spelling of upkeepNeeded is still undefined.
In these cases you are using !upkeepNeeded and as upkeepNeeded is undefined !upkeepNeeded will be true
So in short if you change upkeepNeeded to upKeepNeeded everywhere in test script all the tests passes