Skip to content

modify wrong description of test cases in test/protocol/modules/staki… #197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/protocol/modules/stakingModule.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
});
Expand Down Expand Up @@ -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");
});
});
Expand Down Expand Up @@ -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");
});
});
Expand Down