From b28b0fad7a30d4914eaae76efc96ece483184079 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Thu, 22 Jun 2017 13:45:43 +0200 Subject: Add test for cancelOrderAsync return value --- test/exchange_wrapper_test.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/exchange_wrapper_test.ts') 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', () => { -- cgit v1.2.3