aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-10-23 16:09:25 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-10-24 23:31:59 +0800
commit89103c40fb7d4a1da1f8a3187a2e7732867a99c6 (patch)
tree1d8dc12c09b99fa9eea92f4038c62905b5b08bb1
parentfbe34663da84ee798bb39bfd2144ff16a712413e (diff)
downloaddexon-sol-tools-89103c40fb7d4a1da1f8a3187a2e7732867a99c6.tar
dexon-sol-tools-89103c40fb7d4a1da1f8a3187a2e7732867a99c6.tar.gz
dexon-sol-tools-89103c40fb7d4a1da1f8a3187a2e7732867a99c6.tar.bz2
dexon-sol-tools-89103c40fb7d4a1da1f8a3187a2e7732867a99c6.tar.lz
dexon-sol-tools-89103c40fb7d4a1da1f8a3187a2e7732867a99c6.tar.xz
dexon-sol-tools-89103c40fb7d4a1da1f8a3187a2e7732867a99c6.tar.zst
dexon-sol-tools-89103c40fb7d4a1da1f8a3187a2e7732867a99c6.zip
Use more meaningful variable names
-rw-r--r--test/order_validation_test.ts9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/order_validation_test.ts b/test/order_validation_test.ts
index 07a050fea..dd8b44e1f 100644
--- a/test/order_validation_test.ts
+++ b/test/order_validation_test.ts
@@ -301,7 +301,8 @@ describe('OrderValidation', () => {
exchangeTransferSimulator, signedOrder, takerTokenAmount, takerAddress, zrxTokenAddress,
);
expect(transferFromAsync.callCount).to.be.equal(4);
- expect(transferFromAsync.getCall(0).args[3]).to.be.bignumber.equal(makerTokenAmount);
+ const makerFillAmount = transferFromAsync.getCall(0).args[3];
+ expect(makerFillAmount).to.be.bignumber.equal(makerTokenAmount);
});
it('should correctly round the makerFeeAmount', async () => {
const makerFee = new BigNumber(2);
@@ -317,8 +318,10 @@ describe('OrderValidation', () => {
const makerPartialFee = makerFee.div(2);
const takerPartialFee = takerFee.div(2);
expect(transferFromAsync.callCount).to.be.equal(4);
- expect(transferFromAsync.getCall(2).args[3]).to.be.bignumber.equal(makerPartialFee);
- expect(transferFromAsync.getCall(4).args[3]).to.be.bignumber.equal(takerPartialFee);
+ const partialMakerFee = transferFromAsync.getCall(2).args[3];
+ expect(partialMakerFee).to.be.bignumber.equal(makerPartialFee);
+ const partialTakerFee = transferFromAsync.getCall(4).args[3];
+ expect(partialTakerFee).to.be.bignumber.equal(takerPartialFee);
});
});
});