From 68b81d0c540b54b1d69bce767a6bbe0d9641abdc Mon Sep 17 00:00:00 2001 From: Rafal Czajkowski Date: Wed, 6 Dec 2023 13:49:52 +0100 Subject: [PATCH] Remove unnecessary check If the call reverts it will throw an exception in `beforeEach` hook for `await acre.connect(staker1).stake(...)`. --- core/test/Acre.test.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/test/Acre.test.ts b/core/test/Acre.test.ts index ab9fcb0a2..74e764ca0 100644 --- a/core/test/Acre.test.ts +++ b/core/test/Acre.test.ts @@ -125,10 +125,6 @@ describe("Acre", () => { .stake(amountToStake, staker1.address, emptyReferral) }) - it("should not revert", async () => { - await expect(tx).to.be.not.reverted - }) - it("should not emit the StakeReferral event", async () => { await expect(tx).to.not.emit(acre, "StakeReferral") })