Skip to content

Commit

Permalink
ON-468: Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Lima committed Sep 21, 2023
1 parent 6d7275c commit 4d03cf1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/OriumMarketplace.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ describe('OriumMarketplace', () => {
'OriumMarketplace: Invalid deadline',
)
})
it.skip('Should NOT create a rental offer if nonce is already used', async () => {
// TODO: remove skip when acceptRentalOffer is implemented
await marketplace.connect(lender).createRentalOffer(rentalOffer)
await expect(marketplace.connect(lender).createRentalOffer(rentalOffer)).to.be.revertedWith(
'OriumMarketplace: Invalid nonce',
)
})
})
})
describe('Core Functions', async () => {
Expand Down

0 comments on commit 4d03cf1

Please sign in to comment.