lesson:9 AssertionError: expected '[object Promise]' to equal '0' + expected - actual -[object Promise] +0 #2530
-
const {developmentChains, networkConfig} = require("../../helper-hardhat-config") !developmentChains.includes(network.name) beforeEach(async function(){ describe("constructor", async function(){ can someone plz help me... all the above tests are running fine except the "picks a winner, resets the lottery, and sends money"part im getting this error AssertionError: expected '[object Promise]' to equal '0'
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
@DANIA001 : Can you send me your repo link! It will be more helpfull |
Beta Was this translation helpful? Give feedback.
-
Hey @DANIA001 add
Should be something like this
|
Beta Was this translation helpful? Give feedback.
Hey @DANIA001 add
await
in each of these four lines of codeShould be something like this