diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-10-23 16:09:25 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-10-24 23:31:59 +0800 |
commit | 89103c40fb7d4a1da1f8a3187a2e7732867a99c6 (patch) | |
tree | 1d8dc12c09b99fa9eea92f4038c62905b5b08bb1 | |
parent | fbe34663da84ee798bb39bfd2144ff16a712413e (diff) | |
download | dexon-0x-contracts-89103c40fb7d4a1da1f8a3187a2e7732867a99c6.tar.gz dexon-0x-contracts-89103c40fb7d4a1da1f8a3187a2e7732867a99c6.tar.zst dexon-0x-contracts-89103c40fb7d4a1da1f8a3187a2e7732867a99c6.zip |
Use more meaningful variable names
-rw-r--r-- | test/order_validation_test.ts | 9 |
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); }); }); }); |