From 53f37b04b41d5c987eddb34f0c18d77a51d31acd Mon Sep 17 00:00:00 2001 From: tommyrharper Date: Sat, 2 Dec 2023 18:43:50 +0000 Subject: [PATCH] test: emergency revoking leaves no tokens vestable --- test/TokenVesting.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/TokenVesting.test.ts b/test/TokenVesting.test.ts index e0cee25..ec92526 100644 --- a/test/TokenVesting.test.ts +++ b/test/TokenVesting.test.ts @@ -61,6 +61,12 @@ describe.only("TokenVesting", function () { await expect(this.tokenVesting.release(this.joe.address)).to.be.revertedWith("TokenVesting: no tokens are due") }) + it("emergency revoking leaves no tokens vestable", async function () { + await increase(duration.days(10)) + await this.tokenVesting.emergencyRevoke(this.joe.address) + await expect(this.tokenVesting.release(this.joe.address)).to.be.revertedWith("TokenVesting: no tokens are due") + }) + after(async function () { await network.provider.request({ method: "hardhat_reset",