From 685e02643df5aad56d1ac25afc18894fd902131a Mon Sep 17 00:00:00 2001 From: Daniel Lima Date: Fri, 19 Apr 2024 17:30:23 -0300 Subject: [PATCH] ON-814: update tests --- test/NftRentalMarketplace.test.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/test/NftRentalMarketplace.test.ts b/test/NftRentalMarketplace.test.ts index cbae660..94850d1 100644 --- a/test/NftRentalMarketplace.test.ts +++ b/test/NftRentalMarketplace.test.ts @@ -561,17 +561,6 @@ describe('NftRentalMarketplace', () => { 'NftRentalMarketplace: There are no active Rentals', ) }) - it('Should NOT end a rental if the role was revoked by borrower directly in registry', async () => { - await rolesRegistry - .connect(borrower) - .setRoleApprovalForAll(await mockERC721.getAddress(), await marketplace.getAddress(), true) - await rolesRegistry - .connect(borrower) - .revokeRole(rentalOffer.tokenAddress, rentalOffer.tokenId, rentalOffer.roles[0]) - await expect(marketplace.connect(borrower).endRental(rentalOffer)).to.be.revertedWith( - 'SftRolesRegistry: grantee mismatch', - ) - }) it('Should NOT end rental twice', async () => { await marketplace.connect(borrower).endRental(rentalOffer) await expect(marketplace.connect(borrower).endRental(rentalOffer)).to.be.revertedWith(