Skip to content

Commit

Permalink
Add expect details to fix testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed Dec 4, 2024
1 parent e5e9ff7 commit 4d240b8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,9 @@ describe('GovernorCountingOverridable', function () {
});

it('can not vote twice', async function () {
await expect(this.mock.connect(this.voter1).castVote(this.helper.id, VoteType.Against));
await expect(this.mock.connect(this.voter1).castVote(this.helper.id, VoteType.Against))
.to.emit(this.mock, 'VoteCast')
.withArgs(this.voter1, this.helper.id, VoteType.Against, ethers.parseEther('5'), '');
await expect(this.mock.connect(this.voter1).castVote(this.helper.id, VoteType.Abstain))
.to.be.revertedWithCustomError(this.mock, 'GovernorAlreadyCastVote')
.withArgs(this.voter1.address);
Expand Down

0 comments on commit 4d240b8

Please sign in to comment.