From 1c8eadfd72a78bb88274935c83ec098cd5611ded Mon Sep 17 00:00:00 2001 From: Daniel Lima Date: Wed, 24 Apr 2024 11:28:45 -0300 Subject: [PATCH] ON-814: Increase coverage --- test/NftRentalMarketplace.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/NftRentalMarketplace.test.ts b/test/NftRentalMarketplace.test.ts index 1dc8079..5704896 100644 --- a/test/NftRentalMarketplace.test.ts +++ b/test/NftRentalMarketplace.test.ts @@ -585,6 +585,12 @@ describe('NftRentalMarketplace', () => { 'NftRentalMarketplace: roles registry does not support IERC7432VaultExtension', ) }) + it('Should NOT cancel a rental offer and withdraw if contract is paused', async () => { + await marketplace.connect(operator).pause() + await expect(marketplace.connect(lender).cancelRentalOfferAndWithdraw(rentalOffer)).to.be.revertedWith( + 'Pausable: paused', + ) + }) }) }) })