Skip to content

Commit

Permalink
Added a not to be reverted for custom error
Browse files Browse the repository at this point in the history
  • Loading branch information
mw2000 committed Dec 24, 2023
1 parent eecd818 commit 1583160
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/utils/math/Math.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@ describe('Math', function () {
const exponent = 200n;
const modulus = 50n;
const result = 1n;

await expect(this.mock.$modExp(base, exponent, modulus)).to.not.be.revertedWithCustomError(
this.mock,
'MathModExpCannotBeCalculated',
);

expect(await this.mock.$modExp(base, exponent, modulus)).to.be.equal(result);
});

Expand Down

0 comments on commit 1583160

Please sign in to comment.