Skip to content

0 passing in performupkeep tests #5493

Closed Answered by parishill25
Sanyam2103 asked this question in Q&A
Discussion options

You must be logged in to vote

@Sanyam2103
it("returns true if enough time has passed, has players, eth, and is open", async () => {
await raffle.enterRaffle({ value: raffleEntranceFee })
await network.provider.send("evm_increaseTime", [interval.toNumber() + 1])
await network.provider.request({ method: "evm_mine", params: [] })
const { upKeepNeeded } = await raffle.callStatic.checkUpkeep("0x") // upkeepNeeded = (timePassed && isOpen && hasBalance && hasPlayers)
assert(upKeepNeeded)
})
}) (add this............................)

you forgot to close the }) the describe function of checkUpkeep

Replies: 4 comments 3 replies

Comment options

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

Comment options

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

Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by Sanyam2103
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