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', + ) + }) }) }) })