Skip to content

Commit

Permalink
ON-814: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Lima committed Apr 22, 2024
1 parent 38d1f8b commit 685e026
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions test/NftRentalMarketplace.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 685e026

Please sign in to comment.