aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-08-28 04:53:51 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-08-28 04:53:51 +0800
commit0fd44ee2c1c436b7ce31c29259504d37dcd2423c (patch)
tree3abe0c88d09c8445078f04173c92e82d3665f9ae /packages
parent7271fc0bab45c3d85acee102f2e5cf7ec1249268 (diff)
downloaddexon-sol-tools-0fd44ee2c1c436b7ce31c29259504d37dcd2423c.tar
dexon-sol-tools-0fd44ee2c1c436b7ce31c29259504d37dcd2423c.tar.gz
dexon-sol-tools-0fd44ee2c1c436b7ce31c29259504d37dcd2423c.tar.bz2
dexon-sol-tools-0fd44ee2c1c436b7ce31c29259504d37dcd2423c.tar.lz
dexon-sol-tools-0fd44ee2c1c436b7ce31c29259504d37dcd2423c.tar.xz
dexon-sol-tools-0fd44ee2c1c436b7ce31c29259504d37dcd2423c.tar.zst
dexon-sol-tools-0fd44ee2c1c436b7ce31c29259504d37dcd2423c.zip
Fix broken test
Diffstat (limited to 'packages')
-rw-r--r--packages/contract-wrappers/test/order_validator_wrapper_test.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/contract-wrappers/test/order_validator_wrapper_test.ts b/packages/contract-wrappers/test/order_validator_wrapper_test.ts
index 0226adec7..2fdb00a71 100644
--- a/packages/contract-wrappers/test/order_validator_wrapper_test.ts
+++ b/packages/contract-wrappers/test/order_validator_wrapper_test.ts
@@ -5,6 +5,7 @@ import { DoneCallback, SignedOrder } from '@0xproject/types';
import { BigNumber } from '@0xproject/utils';
import * as chai from 'chai';
import { BlockParamLiteral } from 'ethereum-types';
+import * as _ from 'lodash';
import 'mocha';
import { ContractWrappers, ExchangeCancelEventArgs, ExchangeEvents, ExchangeFillEventArgs, OrderStatus } from '../src';
@@ -102,8 +103,8 @@ describe('OrderValidator', () => {
signedOrders,
takerAddresses,
);
- ordersInfo = ordersAndTradersInfo.ordersInfo;
- tradersInfo = ordersAndTradersInfo.tradersInfo;
+ ordersInfo = _.map(ordersAndTradersInfo, orderAndTraderInfo => orderAndTraderInfo.orderInfo);
+ tradersInfo = _.map(ordersAndTradersInfo, orderAndTraderInfo => orderAndTraderInfo.traderInfo);
});
it('should return the same number of order infos and trader infos as input orders', async () => {
expect(ordersInfo.length).to.be.equal(signedOrders.length);