From 9543710a90c99ed4de6cb21b92ba6656c3dd850e Mon Sep 17 00:00:00 2001 From: itofarina Date: Mon, 1 Apr 2024 12:53:21 -0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20tests:=20fix=20hh=20test=20with=20c?= =?UTF-8?q?ustom=20error=20expected?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/hardhat/15_pausable.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/hardhat/15_pausable.ts b/test/hardhat/15_pausable.ts index d31a66de5..9d90ed48d 100644 --- a/test/hardhat/15_pausable.ts +++ b/test/hardhat/15_pausable.ts @@ -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 () => {