Skip to content

Lesson 9 AssertionError: expected undefined to equal false AssertionError: Unspecified AssertionError #2063

Answered by SatamSai
SidharthK2 asked this question in Q&A
Discussion options

You must be logged in to vote

upkeepNeeded variable name should match in both Raffle.sol and Raffle.test.js

Raffle.sol

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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by SidharthK2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants