From 89103c40fb7d4a1da1f8a3187a2e7732867a99c6 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Mon, 23 Oct 2017 11:09:25 +0300 Subject: Use more meaningful variable names --- test/order_validation_test.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'test') 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); }); }); }); -- cgit v1.2.3