-
-
Save CinnamonGrrrl/32e676652c6c6ba7ec1c86e1eac126ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { increaseTime } = require("./utils"); | |
const DAY = 3600 * 24; | |
contract("Funding", accounts => { | |
[...] | |
let funding; | |
beforeEach(async () => { | |
funding = await Funding.new(DAY); | |
}); | |
it("finishes fundraising when time is up", async () => { | |
assert.equal(await funding.isFinished.call(), false); | |
await increaseTime(DAY); | |
assert.equal(await funding.isFinished.call(), true); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment