Skip to content

Commit 567b52c

Browse files
committed
Make sure the tx is reverted with expected reason
1 parent a868dce commit 567b52c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/test/Acre.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ describe("Acre", () => {
146146
acre
147147
.connect(staker1)
148148
.stake(amountToStake, staker1.address, referral),
149-
).to.be.reverted
149+
).to.be.revertedWithCustomError(tbtc, "ERC20InsufficientAllowance")
150150
})
151151
},
152152
)

0 commit comments

Comments
 (0)