Skip to content

Commit

Permalink
Fix tests lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciech-turek committed Sep 9, 2024
1 parent 835d3c5 commit acc26dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/marketplace/test/exchange/MatchOrders.behavior.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export function shouldMatchOrders() {
makerSig = await signOrder(orderLeft, maker, OrderValidatorAsAdmin);
takerSig = await signOrder(orderRight, taker, OrderValidatorAsAdmin);
});

describe('Custom recipient', function () {
it('allows seller to set custom recipient for sale proceeds', async function () {
await ERC721Contract.mint(maker.getAddress(), 1);
Expand Down Expand Up @@ -174,6 +175,7 @@ export function shouldMatchOrders() {
await ERC20Contract.balanceOf(await user.getAddress())
).to.be.equal(initialUserBalance + 1n);
});

it('allows buyer to set custom recipient for purchase', async function () {
await ERC721Contract.mint(maker.getAddress(), 1);
await ERC721Contract.connect(maker).approve(
Expand Down Expand Up @@ -240,6 +242,7 @@ export function shouldMatchOrders() {
await user.getAddress()
);
});

it('allows both buyer and seller to set custom recipients for the exchange', async function () {
await ERC1155Contract.mint(maker.getAddress(), 1, 1);
await ERC1155Contract.connect(maker).setApprovalForAll(
Expand Down Expand Up @@ -309,6 +312,7 @@ export function shouldMatchOrders() {
).to.be.equal(initialUserBalance + 1n);
});
});

describe('ERC20 x ERC20 token', function () {
it('should execute a complete match order between ERC20 tokens', async function () {
expect(await ERC20Contract.balanceOf(maker)).to.be.equal(10000000000);
Expand Down

1 comment on commit acc26dc

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage for this commit

97.29%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/marketplace/contracts
   Exchange.sol95.52%96.43%93.75%95.65%172, 63
   ExchangeCore.sol98.84%96.67%100%100%82
   OrderValidator.sol89.36%81.82%100%95.24%34, 78–79, 79, 82
   RoyaltiesRegistry.sol96.21%88.24%100%98.77%183, 205–206, 252, 63
   TransferManager.sol96.43%90.91%100%98.80%177, 180, 275, 279, 81
   Whitelist.sol75.81%60%85.71%82.14%103, 107–108, 121, 124, 140–141, 53, 65, 65–66, 70, 75
packages/marketplace/contracts/interfaces
   IOrderValidator.sol100%100%100%100%
   IRoyaltiesProvider.sol100%100%100%100%
   ITransferManager.sol100%100%100%100%
   IWhitelist.sol100%100%100%100%
packages/marketplace/contracts/libraries
   LibAsset.sol100%100%100%100%
   LibMath.sol100%100%100%100%
   LibOrder.sol100%100%100%100%

Please sign in to comment.