aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-03 00:37:38 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-03 00:37:38 +0800
commit45c4f203dff813ba25c04a3c49f0b7e3ad0f2494 (patch)
tree1e41b0017b84dbe46af457fa04e71ce8597750b8
parent9620b18fecb59b5ce4c2fec483e426f79852c034 (diff)
downloaddexon-sol-tools-45c4f203dff813ba25c04a3c49f0b7e3ad0f2494.tar
dexon-sol-tools-45c4f203dff813ba25c04a3c49f0b7e3ad0f2494.tar.gz
dexon-sol-tools-45c4f203dff813ba25c04a3c49f0b7e3ad0f2494.tar.bz2
dexon-sol-tools-45c4f203dff813ba25c04a3c49f0b7e3ad0f2494.tar.lz
dexon-sol-tools-45c4f203dff813ba25c04a3c49f0b7e3ad0f2494.tar.xz
dexon-sol-tools-45c4f203dff813ba25c04a3c49f0b7e3ad0f2494.tar.zst
dexon-sol-tools-45c4f203dff813ba25c04a3c49f0b7e3ad0f2494.zip
Fix linter errors
-rw-r--r--test/exchange_wrapper_test.ts16
1 files changed, 12 insertions, 4 deletions
diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts
index 7b4730f3a..3935ebc89 100644
--- a/test/exchange_wrapper_test.ts
+++ b/test/exchange_wrapper_test.ts
@@ -171,7 +171,9 @@ describe('ExchangeWrapper', () => {
);
});
it('should throw when taker balance is less than fill amount', async () => {
- await zeroEx.token.transferAsync(takerTokenAddress, takerAddress, coinbase, balanceToSubtractFromMaker);
+ await zeroEx.token.transferAsync(
+ takerTokenAddress, takerAddress, coinbase, balanceToSubtractFromMaker,
+ );
zeroEx.setTransactionSenderAccount(takerAddress);
return expect(zeroEx.exchange.fillOrderAsync(
signedOrder, fillTakerAmount, shouldCheckTransfer,
@@ -187,7 +189,9 @@ describe('ExchangeWrapper', () => {
)).to.be.rejectedWith(ExchangeContractErrs.INSUFFICIENT_TAKER_ALLOWANCE);
});
it('should throw when maker balance is less than maker fill amount', async () => {
- await zeroEx.token.transferAsync(makerTokenAddress, makerAddress, coinbase, balanceToSubtractFromMaker);
+ await zeroEx.token.transferAsync(
+ makerTokenAddress, makerAddress, coinbase, balanceToSubtractFromMaker,
+ );
zeroEx.setTransactionSenderAccount(takerAddress);
return expect(zeroEx.exchange.fillOrderAsync(
signedOrder, fillTakerAmount, shouldCheckTransfer,
@@ -230,7 +234,9 @@ describe('ExchangeWrapper', () => {
});
it('should throw when maker doesn\'t have enough balance to pay fees', async () => {
const balanceToSubtractFromMaker = new BigNumber(1);
- await zeroEx.token.transferAsync(zrxTokenAddress, makerAddress, coinbase, balanceToSubtractFromMaker);
+ await zeroEx.token.transferAsync(
+ zrxTokenAddress, makerAddress, coinbase, balanceToSubtractFromMaker,
+ );
return expect(zeroEx.exchange.fillOrderAsync(
signedOrder, fillTakerAmount, shouldCheckTransfer,
)).to.be.rejectedWith(ExchangeContractErrs.INSUFFICIENT_MAKER_FEE_BALANCE);
@@ -245,7 +251,9 @@ describe('ExchangeWrapper', () => {
});
it('should throw when taker doesn\'t have enough balance to pay fees', async () => {
const balanceToSubtractFromTaker = new BigNumber(1);
- await zeroEx.token.transferAsync(zrxTokenAddress, takerAddress, coinbase, balanceToSubtractFromTaker);
+ await zeroEx.token.transferAsync(
+ zrxTokenAddress, takerAddress, coinbase, balanceToSubtractFromTaker,
+ );
return expect(zeroEx.exchange.fillOrderAsync(
signedOrder, fillTakerAmount, shouldCheckTransfer,
)).to.be.rejectedWith(ExchangeContractErrs.INSUFFICIENT_TAKER_FEE_BALANCE);