diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-22 19:45:43 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-22 19:45:43 +0800 |
commit | b28b0fad7a30d4914eaae76efc96ece483184079 (patch) | |
tree | 28231bef13f24814faca4b5dd7678488dabb4a5a /test/exchange_wrapper_test.ts | |
parent | 0dbad86d239cc1afb9df3c805a7567180b458b36 (diff) | |
download | dexon-0x-contracts-b28b0fad7a30d4914eaae76efc96ece483184079.tar dexon-0x-contracts-b28b0fad7a30d4914eaae76efc96ece483184079.tar.gz dexon-0x-contracts-b28b0fad7a30d4914eaae76efc96ece483184079.tar.bz2 dexon-0x-contracts-b28b0fad7a30d4914eaae76efc96ece483184079.tar.lz dexon-0x-contracts-b28b0fad7a30d4914eaae76efc96ece483184079.tar.xz dexon-0x-contracts-b28b0fad7a30d4914eaae76efc96ece483184079.tar.zst dexon-0x-contracts-b28b0fad7a30d4914eaae76efc96ece483184079.zip |
Add test for cancelOrderAsync return value
Diffstat (limited to 'test/exchange_wrapper_test.ts')
-rw-r--r-- | test/exchange_wrapper_test.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts index cda2d4435..6ff710dda 100644 --- a/test/exchange_wrapper_test.ts +++ b/test/exchange_wrapper_test.ts @@ -504,6 +504,10 @@ describe('ExchangeWrapper', () => { const cancelledAmount = await zeroEx.exchange.getCanceledTakerAmountAsync(orderHashHex); expect(cancelledAmount).to.be.bignumber.equal(cancelAmount); }); + it('should return cancelled amount', async () => { + const cancelledAmount = await zeroEx.exchange.cancelOrderAsync(signedOrder, cancelAmount); + expect(cancelledAmount).to.be.bignumber.equal(cancelAmount); + }); }); }); describe('#batchCancelOrderAsync', () => { |