diff options
author | Fabio Berger <me@fabioberger.com> | 2018-05-23 02:58:42 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-05-23 02:58:42 +0800 |
commit | 9373451ca8c19ac2ab20db792fd049ccf284f1f2 (patch) | |
tree | 2966f2c8b73b9274e054507fb910c435a82a4e2e /packages/contracts/test/utils | |
parent | 15c199d5a23bcab229a4eab531c5ecc49e9f718b (diff) | |
download | dexon-sol-tools-9373451ca8c19ac2ab20db792fd049ccf284f1f2.tar dexon-sol-tools-9373451ca8c19ac2ab20db792fd049ccf284f1f2.tar.gz dexon-sol-tools-9373451ca8c19ac2ab20db792fd049ccf284f1f2.tar.bz2 dexon-sol-tools-9373451ca8c19ac2ab20db792fd049ccf284f1f2.tar.lz dexon-sol-tools-9373451ca8c19ac2ab20db792fd049ccf284f1f2.tar.xz dexon-sol-tools-9373451ca8c19ac2ab20db792fd049ccf284f1f2.tar.zst dexon-sol-tools-9373451ca8c19ac2ab20db792fd049ccf284f1f2.zip |
Fix tslint issues
Diffstat (limited to 'packages/contracts/test/utils')
-rw-r--r-- | packages/contracts/test/utils/match_order_tester.ts | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/packages/contracts/test/utils/match_order_tester.ts b/packages/contracts/test/utils/match_order_tester.ts index da311e6ea..ae874e502 100644 --- a/packages/contracts/test/utils/match_order_tester.ts +++ b/packages/contracts/test/utils/match_order_tester.ts @@ -57,8 +57,8 @@ export class MatchOrderTester { realERC721TokenIdsByOwner: ERC721TokenIdsByOwner, ): boolean { // ERC20 Balances - const erc20BalancesMatch = _.isEqual(expectedNewERC20BalancesByOwner, realERC20BalancesByOwner); - if (!erc20BalancesMatch) { + const doesErc20BalancesMatch = _.isEqual(expectedNewERC20BalancesByOwner, realERC20BalancesByOwner); + if (!doesErc20BalancesMatch) { return false; } // ERC721 Token Ids @@ -75,8 +75,11 @@ export class MatchOrderTester { _.sortBy(tokenIds); }); }); - const erc721TokenIdsMatch = _.isEqual(sortedExpectedNewERC721TokenIdsByOwner, sortedNewERC721TokenIdsByOwner); - return erc721TokenIdsMatch; + const doesErc721TokenIdsMatch = _.isEqual( + sortedExpectedNewERC721TokenIdsByOwner, + sortedNewERC721TokenIdsByOwner, + ); + return doesErc721TokenIdsMatch; } /// @dev Constructs new MatchOrderTester. /// @param exchangeWrapper Used to call to the Exchange. @@ -156,13 +159,13 @@ export class MatchOrderTester { expectedTransferAmounts, ); // Assert our expected balances are equal to the actual balances - const expectedBalancesMatchRealBalances = MatchOrderTester._compareExpectedAndRealBalances( + const didExpectedBalancesMatchRealBalances = MatchOrderTester._compareExpectedAndRealBalances( expectedERC20BalancesByOwner, newERC20BalancesByOwner, expectedERC721TokenIdsByOwner, newERC721TokenIdsByOwner, ); - expect(expectedBalancesMatchRealBalances).to.be.true(); + expect(didExpectedBalancesMatchRealBalances).to.be.true(); return [newERC20BalancesByOwner, newERC721TokenIdsByOwner]; } /// @dev Calculates expected transfer amounts between order makers, fee recipients, and |