diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-02 00:52:56 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-02 00:52:56 +0800 |
commit | c42877327e59f983a83c7221f1bec5b31addf5a7 (patch) | |
tree | 0ebb74ce35ad1f32733210d99c6a35d74a0ed712 | |
parent | 520248e6787a04b2fcf45d7f185d85214a84bfd5 (diff) | |
download | dexon-0x-contracts-c42877327e59f983a83c7221f1bec5b31addf5a7.tar.gz dexon-0x-contracts-c42877327e59f983a83c7221f1bec5b31addf5a7.tar.zst dexon-0x-contracts-c42877327e59f983a83c7221f1bec5b31addf5a7.zip |
Change test name
-rw-r--r-- | test/exchange_wrapper_test.ts | 5 |
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); }); }); |