Prepare tests for hardhat-exposed transition (#3930)

Co-authored-by: Francisco <frangio.1@gmail.com>
This commit is contained in:
Hadrien Croubois
2023-01-12 09:51:29 +01:00
committed by GitHub
parent d210847e28
commit 7c6e289782
13 changed files with 369 additions and 418 deletions

View File

@ -374,7 +374,7 @@ contract('ERC20VotesComp', function (accounts) {
expect(await this.token.checkpoints(other1, 1)).to.be.deep.equal([ t4.receipt.blockNumber.toString(), '100' ]);
});
});
describe('getPriorVotes', function () {
it('reverts if block number >= current block', async function () {
await expectRevert(
@ -497,17 +497,10 @@ contract('ERC20VotesComp', function (accounts) {
describe('Voting workflow', function () {
beforeEach(async function () {
this.account1 = holder;
this.account1Delegatee = holderDelegatee;
this.account2 = recipient;
this.name = 'My Token';
this.votes = this.token
this.token0 = 1;
this.token1 = 1;
this.token2 = 1;
this.token3 = 1;
this.name = name;
this.votes = this.token;
});
shouldBehaveLikeVotes();
shouldBehaveLikeVotes(accounts, [1, 17, 42]);
});
});