From ebd507632453619aa066acbfdfbfe7c52d34b9ae Mon Sep 17 00:00:00 2001 From: Dan Liu Date: Tue, 22 Feb 2022 07:59:12 +0800 Subject: [PATCH] modify wrong description of test cases in test/protocol/modules/stakingModule.spec.ts --- test/protocol/modules/stakingModule.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/protocol/modules/stakingModule.spec.ts b/test/protocol/modules/stakingModule.spec.ts index 2c3e3bd29..bd719d039 100644 --- a/test/protocol/modules/stakingModule.spec.ts +++ b/test/protocol/modules/stakingModule.spec.ts @@ -164,7 +164,7 @@ describe("StakingModule", () => { ); }); - it("should transfer the staked tokens to the staking contract", async () => { + it("should revert when the there is an open external position", async () => { await expect(subject()).to.be.revertedWith("Open positions must be closed"); }); }); @@ -333,7 +333,7 @@ describe("StakingModule", () => { subjectComponentPositionUnits = ether(1.1); }); - it("should emit the correct ComponentStaked event", async () => { + it("should revert when trying to stake more tokens than available in Default state", async () => { await expect(subject()).to.be.revertedWith("Not enough component to stake"); }); }); @@ -578,7 +578,7 @@ describe("StakingModule", () => { subjectComponentPositionUnits = ether(.6); }); - it("should emit the correct ComponentStaked event", async () => { + it("should revert when trying to unstake more tokens than staked", async () => { await expect(subject()).to.be.revertedWith("Not enough component tokens staked"); }); });