From bd9fa3d335afdd0cd8b573f60b3ce3c0db6ad4dd Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Thu, 22 Jun 2017 14:15:35 +0200 Subject: Add test for return amount from fillOrdersUpToAsync --- test/exchange_wrapper_test.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts index 6ff710dda..211c2819c 100644 --- a/test/exchange_wrapper_test.ts +++ b/test/exchange_wrapper_test.ts @@ -452,6 +452,12 @@ describe('ExchangeWrapper', () => { const remainingFillAmount = fillableAmount.minus(1); expect(anotherFilledAmount).to.be.bignumber.equal(remainingFillAmount); }); + it('should return filled amount', async () => { + const filledTakerTokenAmount = await zeroEx.exchange.fillOrdersUpToAsync( + signedOrders, fillUpToAmount, shouldCheckTransfer, takerAddress, + ); + expect(filledTakerTokenAmount).to.be.bignumber.equal(fillUpToAmount); + }); }); }); }); -- cgit v1.2.3