Skip to content

Commit

Permalink
✅ tests: fix hh test with custom error expected
Browse files Browse the repository at this point in the history
  • Loading branch information
itofarina committed Apr 1, 2024
1 parent 52809e9 commit 9543710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/hardhat/15_pausable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe("Market - Pausable", function () {
});

it("AND WHEN a pause is called from third parties, THEN it should revert with AccessControl error", async () => {
await expect(market.connect(account).pause()).to.be.revertedWithoutReason();
await expect(market.connect(account).pause()).to.be.revertedWithCustomError(market, "NotPausingRole");
});

it("AND WHEN an unpause is called from third parties, THEN it should revert with AccessControl error", async () => {
Expand Down

0 comments on commit 9543710

Please sign in to comment.