aboutsummaryrefslogtreecommitdiffstats
path: root/test/exchange_wrapper_test.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-22 20:15:35 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-22 20:15:35 +0800
commitbd9fa3d335afdd0cd8b573f60b3ce3c0db6ad4dd (patch)
tree54783d3b134e87e9c2d85a54f13888d5ad0a300b /test/exchange_wrapper_test.ts
parent9c2a332b699e7bad85a284a69c8cd6cca31bc519 (diff)
downloaddexon-sol-tools-bd9fa3d335afdd0cd8b573f60b3ce3c0db6ad4dd.tar
dexon-sol-tools-bd9fa3d335afdd0cd8b573f60b3ce3c0db6ad4dd.tar.gz
dexon-sol-tools-bd9fa3d335afdd0cd8b573f60b3ce3c0db6ad4dd.tar.bz2
dexon-sol-tools-bd9fa3d335afdd0cd8b573f60b3ce3c0db6ad4dd.tar.lz
dexon-sol-tools-bd9fa3d335afdd0cd8b573f60b3ce3c0db6ad4dd.tar.xz
dexon-sol-tools-bd9fa3d335afdd0cd8b573f60b3ce3c0db6ad4dd.tar.zst
dexon-sol-tools-bd9fa3d335afdd0cd8b573f60b3ce3c0db6ad4dd.zip
Add test for return amount from fillOrdersUpToAsync
Diffstat (limited to 'test/exchange_wrapper_test.ts')
-rw-r--r--test/exchange_wrapper_test.ts6
1 files changed, 6 insertions, 0 deletions
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);
+ });
});
});
});