aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-02 00:52:56 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-02 00:52:56 +0800
commitc42877327e59f983a83c7221f1bec5b31addf5a7 (patch)
tree0ebb74ce35ad1f32733210d99c6a35d74a0ed712 /test
parent520248e6787a04b2fcf45d7f185d85214a84bfd5 (diff)
downloaddexon-sol-tools-c42877327e59f983a83c7221f1bec5b31addf5a7.tar
dexon-sol-tools-c42877327e59f983a83c7221f1bec5b31addf5a7.tar.gz
dexon-sol-tools-c42877327e59f983a83c7221f1bec5b31addf5a7.tar.bz2
dexon-sol-tools-c42877327e59f983a83c7221f1bec5b31addf5a7.tar.lz
dexon-sol-tools-c42877327e59f983a83c7221f1bec5b31addf5a7.tar.xz
dexon-sol-tools-c42877327e59f983a83c7221f1bec5b31addf5a7.tar.zst
dexon-sol-tools-c42877327e59f983a83c7221f1bec5b31addf5a7.zip
Change test name
Diffstat (limited to 'test')
-rw-r--r--test/exchange_wrapper_test.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts
index 2746c9e46..4847d10cf 100644
--- a/test/exchange_wrapper_test.ts
+++ b/test/exchange_wrapper_test.ts
@@ -154,15 +154,14 @@ describe('ExchangeWrapper', () => {
expect(zeroEx.exchange.fillOrderAsync(signedOrder, fillTakerAmountInBaseUnits, shouldCheckTransfer))
.to.be.rejectedWith(FillOrderValidationErrs.EXPIRED);
});
- it('should throw when not enough balance', async () => {
+ it('should throw when taker balance is less than fill amount', async () => {
const makerAmount = 10;
const takerAmount = 10;
const signedOrder = await orderFactory.createSignedOrderAsync(zeroEx, maker, taker,
makerAmount, addressBySymbol.MLN, takerAmount, addressBySymbol.GNT);
zeroEx.setDefaultAccount(taker);
const moreThanTheBalance = new BigNumber(6);
- const checkTransfer = true;
- expect(zeroEx.exchange.fillOrderAsync(signedOrder, moreThanTheBalance, checkTransfer))
+ expect(zeroEx.exchange.fillOrderAsync(signedOrder, moreThanTheBalance, shouldCheckTransfer))
.to.be.rejectedWith(FillOrderValidationErrs.NOT_ENOUGH_TAKER_BALANCE);
});
});