We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我的本地运行getFund函数测试时,时不时提示金额不对,按照金额推断应该是上个场景测试影响到了,但是找不到原因,有谁知道大概是哪方面的问题 ` it("window close,target not reached, getFund faild", async function () { await fundMe.fund({ value: ethers.parseEther("0.1") }) //make sure the window is closed await helpers.time.increase(200) await helpers.mine() await expect(fundMe.getFund()) .to.be.revertedWith("target not reached") } )
//提示金额不对 it("window close,target reached, getFund success", async function () { await fundMe.fund({ value: ethers.parseEther("1") }) //make sure the window is closed await helpers.time.increase(200) await helpers.mine() await expect(fundMe.getFund()) .to.emit(fundMe, "FundWithdrawByOwner") .withArgs(ethers.parseEther("1")) } )`
The text was updated successfully, but these errors were encountered:
No branches or pull requests
我的本地运行getFund函数测试时,时不时提示金额不对,按照金额推断应该是上个场景测试影响到了,但是找不到原因,有谁知道大概是哪方面的问题
` it("window close,target not reached, getFund faild",
async function () {
await fundMe.fund({ value: ethers.parseEther("0.1") })
//make sure the window is closed
await helpers.time.increase(200)
await helpers.mine()
await expect(fundMe.getFund())
.to.be.revertedWith("target not reached")
}
)
//提示金额不对
it("window close,target reached, getFund success",
async function () {
await fundMe.fund({ value: ethers.parseEther("1") })
//make sure the window is closed
await helpers.time.increase(200)
await helpers.mine()
await expect(fundMe.getFund())
.to.emit(fundMe, "FundWithdrawByOwner")
.withArgs(ethers.parseEther("1"))
}
)`
The text was updated successfully, but these errors were encountered: