diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-10 00:12:45 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-10 00:12:45 +0800 |
commit | 800788eca4299f69930a0030b2a0e0e7eaadcace (patch) | |
tree | 96e123f9a9f394ca3bac734f4e375079d56f7d39 | |
parent | 2fd5d29b40827f84f9fb078eea984e8d9a36e88b (diff) | |
download | dexon-sol-tools-800788eca4299f69930a0030b2a0e0e7eaadcace.tar.gz dexon-sol-tools-800788eca4299f69930a0030b2a0e0e7eaadcace.tar.zst dexon-sol-tools-800788eca4299f69930a0030b2a0e0e7eaadcace.zip |
Fix tests
-rw-r--r-- | test/exchange_wrapper_test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts index f5ed1304b..3ee8ff188 100644 --- a/test/exchange_wrapper_test.ts +++ b/test/exchange_wrapper_test.ts @@ -626,13 +626,13 @@ describe('ExchangeWrapper', () => { fromBlock: 0, toBlock: 'latest', }; - const fillTakerAmountInBaseUnits = new BigNumber(1); await zeroEx.exchange.subscribeAsync(ExchangeEvents.LogFill, subscriptionOpts, indexFilterValues, (err: Error, event: ContractEvent) => { expect(err).to.be.null(); - expect(event.args.filledValueT).to.be.bignumber.equal(fillTakerAmountInBaseUnits); + expect(event).to.not.be.undefined(); done(); }); + const fillTakerAmountInBaseUnits = new BigNumber(1); await zeroEx.exchange.fillOrderAsync( signedOrder, fillTakerAmountInBaseUnits, shouldCheckTransfer, takerAddress, ); @@ -644,13 +644,13 @@ describe('ExchangeWrapper', () => { fromBlock: 0, toBlock: 'latest', }; - const cancelTakerAmountInBaseUnits = new BigNumber(1); await zeroEx.exchange.subscribeAsync(ExchangeEvents.LogCancel, subscriptionOpts, indexFilterValues, (err: Error, event: ContractEvent) => { expect(err).to.be.null(); - expect(event.args.cancelledValueT).to.be.bignumber.equal(cancelTakerAmountInBaseUnits); + expect(event).to.not.be.undefined(); done(); }); + const cancelTakerAmountInBaseUnits = new BigNumber(1); await zeroEx.exchange.cancelOrderAsync(signedOrder, cancelTakerAmountInBaseUnits); })(); }); |