Skip to content

AssertionError: expected undefined to equal false #1418

Answered by technophile-04
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Hii @0xamey , It seems that you forgot to add await

it("returns false if enough time hasn't passed", async () => {
                  await raffle.enterRaffle({ value: raffleEntranceFee })
                  await network.provider.send("evm_increaseTime", [interval.toNumber() - 1])
                  await network.provider.send("evm_mine", [])
+                  const { upkeepNeeded } = await raffle.callStatic.checkUpkeep([])
-                  const { upkeepNeeded } = raffle.callStatic.checkUpkeep([])
                  assert.equal(upkeepNeeded, false)
})

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Comment options

You must be logged in to vote
2 replies
@ghost
Comment options

@technophile-04
Comment options

Answer selected by alymurtazamemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants