aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-22 19:45:43 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-22 19:45:43 +0800
commitb28b0fad7a30d4914eaae76efc96ece483184079 (patch)
tree28231bef13f24814faca4b5dd7678488dabb4a5a /test
parent0dbad86d239cc1afb9df3c805a7567180b458b36 (diff)
downloaddexon-sol-tools-b28b0fad7a30d4914eaae76efc96ece483184079.tar
dexon-sol-tools-b28b0fad7a30d4914eaae76efc96ece483184079.tar.gz
dexon-sol-tools-b28b0fad7a30d4914eaae76efc96ece483184079.tar.bz2
dexon-sol-tools-b28b0fad7a30d4914eaae76efc96ece483184079.tar.lz
dexon-sol-tools-b28b0fad7a30d4914eaae76efc96ece483184079.tar.xz
dexon-sol-tools-b28b0fad7a30d4914eaae76efc96ece483184079.tar.zst
dexon-sol-tools-b28b0fad7a30d4914eaae76efc96ece483184079.zip
Add test for cancelOrderAsync return value
Diffstat (limited to 'test')
-rw-r--r--test/exchange_wrapper_test.ts4
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', () => {