Skip to content

Commit

Permalink
test: full vesting of TokenVesting
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyrharper committed Dec 2, 2023
1 parent 7d0cdcf commit 33bd1e9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/TokenVesting.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ describe.only("TokenVesting", function () {
expect(await this.joe.balanceOf(this.tokenVesting.address)).to.lt(100)
})

it("should allow all tokens to be vested once all time has passed", async function() {
await increase(duration.days(14))
await this.tokenVesting.release(this.joe.address)
expect(await this.joe.balanceOf(this.alice.address)).to.equal(100)
expect(await this.joe.balanceOf(this.tokenVesting.address)).to.equal(0)
})

after(async function () {
await network.provider.request({
method: "hardhat_reset",
Expand Down

0 comments on commit 33bd1e9

Please sign in to comment.