Skip to content

Commit

Permalink
ON-814: Increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Lima committed Apr 24, 2024
1 parent 5a48c16 commit 1c8eadf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/NftRentalMarketplace.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
)
})
})
})
})
Expand Down

0 comments on commit 1c8eadf

Please sign in to comment.