diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-07 23:46:55 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-07 23:46:55 +0800 |
commit | badbaa39fc000e6febced9d8d0118565af7648dc (patch) | |
tree | 184dc1db322fc349792fcc7d9394589534f50a42 /test/exchange_wrapper_test.ts | |
parent | 3126279de715d74a73af270a730cf5b0c069634f (diff) | |
download | dexon-sol-tools-badbaa39fc000e6febced9d8d0118565af7648dc.tar dexon-sol-tools-badbaa39fc000e6febced9d8d0118565af7648dc.tar.gz dexon-sol-tools-badbaa39fc000e6febced9d8d0118565af7648dc.tar.bz2 dexon-sol-tools-badbaa39fc000e6febced9d8d0118565af7648dc.tar.lz dexon-sol-tools-badbaa39fc000e6febced9d8d0118565af7648dc.tar.xz dexon-sol-tools-badbaa39fc000e6febced9d8d0118565af7648dc.tar.zst dexon-sol-tools-badbaa39fc000e6febced9d8d0118565af7648dc.zip |
Address feedback
Diffstat (limited to 'test/exchange_wrapper_test.ts')
-rw-r--r-- | test/exchange_wrapper_test.ts | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts index 68224a68c..88a2e2277 100644 --- a/test/exchange_wrapper_test.ts +++ b/test/exchange_wrapper_test.ts @@ -395,21 +395,17 @@ describe('ExchangeWrapper', () => { ]; }); describe('failed batch cancels', () => { - it('should throw when orders are empty', async () => { - return expect(zeroEx.exchange.batchCancelOrderAsync([])) - .to.be.rejectedWith('Can not cancel an empty batch'); - }); - it.only('should throw when orders have different makers', async () => { - const signedOrderWithADifferentMaker = await fillScenarios.createFillableSignedOrderAsync( + it('should throw when orders have different makers', async () => { + const signedOrderWithDifferentMaker = await fillScenarios.createFillableSignedOrderAsync( makerTokenAddress, takerTokenAddress, takerAddress, takerAddress, fillableAmount, ); return expect(zeroEx.exchange.batchCancelOrderAsync([ cancelBatch[0], { - order: signedOrderWithADifferentMaker, + order: signedOrderWithDifferentMaker, takerTokenCancelAmount: cancelAmount, }, - ])).to.be.rejectedWith('Can not cancel orders from multiple makers in a single batch'); + ])).to.be.rejectedWith(ExchangeContractErrs.MULTIPLE_MAKERS_IN_SINGLE_CANCEL_BATCH); }); }); describe('successful batch cancels', () => { |