Add test for return amount from fillOrdersUpToAsync

This commit is contained in:
Leonid Logvinov
2017-06-22 14:15:35 +02:00
parent 9c2a332b69
commit bd9fa3d335

View File

@@ -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);
});
});
});
});