Skip to content

Commit

Permalink
adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCardinalError committed Jun 10, 2024
1 parent c558efb commit 4b492c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/Staking.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,23 +404,23 @@ describe('Staking', function () {

it('should change overlay hex', async function () {
const current_overlay = await sr_staker_1.overlayOfAddress(staker_1);
await sr_staker_1.changeOverlay(nonce_1_n_25);
await sr_staker_1.manageStake(nonce_1_n_25, 0);
const new_overlay = await sr_staker_1.overlayOfAddress(staker_1);
expect(new_overlay).to.not.eq(current_overlay);
});

it('should match new overlay hex', async function () {
await sr_staker_1.changeOverlay(nonce_1_n_25);
await sr_staker_1.manageStake(nonce_1_n_25, 0);
const new_overlay = await sr_staker_1.overlayOfAddress(staker_1);
expect(new_overlay).to.be.eq(overlay_1_n_25);
});

it('should match old overlay hex after double change', async function () {
await sr_staker_1.changeOverlay(nonce_1_n_25);
await sr_staker_1.manageStake(nonce_1_n_25, 0);
const new_overlay = await sr_staker_1.overlayOfAddress(staker_1);
expect(new_overlay).to.be.eq(overlay_1_n_25);

await sr_staker_1.changeOverlay(nonce_1);
await sr_staker_1.manageStake(nonce_1, 0);
const old_overlay = await sr_staker_1.overlayOfAddress(staker_1);
expect(old_overlay).to.be.eq(overlay_1);
});
Expand Down

0 comments on commit 4b492c3

Please sign in to comment.