Skip to content

Commit

Permalink
refactor: bundle tests
Browse files Browse the repository at this point in the history
  • Loading branch information
capedcrusader21 committed Sep 16, 2024
1 parent fa3b1fd commit c2c2266
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1,232 deletions.
4 changes: 4 additions & 0 deletions packages/marketplace/test/Exchange.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {shouldSupportInterfaces} from './common/SupportsInterface.behavior.ts';
import {shouldCheckForWhitelisting} from './exchange/WhitelistingTokens.behavior.ts';
import {shouldMatchOrdersWithRoyalty} from './exchange/MatchOrdersWithRoyalties.behavior.ts';
import {shouldMatchOrdersForBundle} from './exchange/Bundle.behavior.ts';
import {shouldMatchOrdersForBundleWithRoyalty} from './exchange/BundleWithRoyalties.behaviour.ts';

describe('Exchange.sol', function () {
let AssetMatcherAsUser: Contract,
Expand Down Expand Up @@ -110,6 +111,9 @@ describe('Exchange.sol', function () {
// eslint-disable-next-line mocha/no-setup-in-describe
shouldMatchOrdersForBundle();

// eslint-disable-next-line mocha/no-setup-in-describe
shouldMatchOrdersForBundleWithRoyalty();

// eslint-disable-next-line mocha/no-setup-in-describe
exchangeConfig();

Expand Down
Loading

2 comments on commit c2c2266

@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

98.19%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/marketplace/contracts
   Exchange.sol94.52%93.33%94.44%96%126, 194, 72
   ExchangeCore.sol98.84%96.67%100%100%85
   OrderValidator.sol98.44%96.15%100%100%36
   RoyaltiesRegistry.sol96.32%88.89%100%98.78%194, 216–217, 263, 65
   TransferManager.sol94.53%84.09%100%99.39%163, 213, 235, 246, 268, 295, 301, 364, 514, 519, 530, 542–543, 554, 93
   Whitelist.sol75.81%60%85.71%82.14%104, 108–109, 122, 125, 141–142, 54, 66, 66–67, 71, 76
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%

@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

98.19%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/marketplace/contracts
   Exchange.sol94.52%93.33%94.44%96%126, 194, 72
   ExchangeCore.sol98.84%96.67%100%100%85
   OrderValidator.sol98.44%96.15%100%100%36
   RoyaltiesRegistry.sol96.32%88.89%100%98.78%194, 216–217, 263, 65
   TransferManager.sol94.53%84.09%100%99.39%163, 213, 235, 246, 268, 295, 301, 364, 514, 519, 530, 542–543, 554, 93
   Whitelist.sol75.81%60%85.71%82.14%104, 108–109, 122, 125, 141–142, 54, 66, 66–67, 71, 76
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.