Skip to content

Commit

Permalink
finalize tests
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCardinalError committed Oct 10, 2024
1 parent 144374f commit dae9f0e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/Redistribution.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ const errors = {
commit: {
notOwner: 'NotMatchingOwner()',
notStaked: 'NotStaked()',
stakedRecently: 'MustStake2Rounds()',
mustStake2Rounds: 'MustStake2Rounds()',
alreadyCommitted: 'AlreadyCommitted()',
},
reveal: {
Expand Down Expand Up @@ -252,7 +252,7 @@ describe('Redistribution', function () {

const r_node_0 = await ethers.getContract('Redistribution', node_0);
await expect(r_node_0['isParticipatingInUpcomingRound(address,uint8)'](node_0, depth_0)).to.be.revertedWith(
errors.commit.stakedRecently
errors.commit.mustStake2Rounds
);
});

Expand All @@ -265,7 +265,7 @@ describe('Redistribution', function () {

const r_node_0 = await ethers.getContract('Redistribution', node_0);
await expect(r_node_0['isParticipatingInUpcomingRound(address,uint8)'](node_0, depth_0)).to.be.revertedWith(
errors.commit.stakedRecently
errors.commit.mustStake2Rounds
);
});

Expand All @@ -278,7 +278,7 @@ describe('Redistribution', function () {

const r_node_0 = await ethers.getContract('Redistribution', node_0);
await expect(r_node_0['isParticipatingInUpcomingRound(address,uint8)'](node_0, depth_0)).to.be.revertedWith(
errors.commit.stakedRecently
errors.commit.mustStake2Rounds
);
});
});
Expand Down

0 comments on commit dae9f0e

Please sign in to comment.