From 335b9629b85ac394afc7afb649de29ee608764b5 Mon Sep 17 00:00:00 2001 From: Jacob Evans Date: Tue, 21 Nov 2017 15:00:09 +1100 Subject: calculatedFillableAmountPlusFees --- packages/0x.js/test/remaining_fillable_calculator_test.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'packages') diff --git a/packages/0x.js/test/remaining_fillable_calculator_test.ts b/packages/0x.js/test/remaining_fillable_calculator_test.ts index 5b7fd63f1..ca541237f 100644 --- a/packages/0x.js/test/remaining_fillable_calculator_test.ts +++ b/packages/0x.js/test/remaining_fillable_calculator_test.ts @@ -122,15 +122,15 @@ describe.only('RemainingFillableCalculator', () => { transferrableMakerFeeTokenAmount = transferrableMakerTokenAmount; const orderToFeeRatio = signedOrder.makerTokenAmount.dividedToIntegerBy(signedOrder.makerFee); - const expectedRemainingAmount = new BigNumber(450950); - const numberOfFillsInRatio = expectedRemainingAmount.dividedToIntegerBy(orderToFeeRatio); + const expectedFillableAmount = new BigNumber(450950); + const numberOfFillsInRatio = expectedFillableAmount.dividedToIntegerBy(orderToFeeRatio); calculator = new RemainingFillableCalculator(signedOrder, isMakerTokenZRX, transferrableMakerTokenAmount, transferrableMakerFeeTokenAmount, remainingMakerTokenAmount); - const calculatedRemainingAmount = calculator.computeRemainingMakerFillable(); - const calculatedRemainingAmountPlusFees = calculatedRemainingAmount.plus(numberOfFillsInRatio); - expect(calculatedRemainingAmount).to.be.bignumber.equal(expectedRemainingAmount); - expect(calculatedRemainingAmountPlusFees).to.be.bignumber.lessThan(transferrableMakerTokenAmount); - expect(calculatedRemainingAmountPlusFees).to.be.bignumber.lessThan(remainingMakerTokenAmount); + const calculatedFillableAmount = calculator.computeRemainingMakerFillable(); + const calculatedFillableAmountPlusFees = calculatedFillableAmount.plus(numberOfFillsInRatio); + expect(calculatedFillableAmount).to.be.bignumber.equal(expectedFillableAmount); + expect(calculatedFillableAmountPlusFees).to.be.bignumber.lessThan(transferrableMakerTokenAmount); + expect(calculatedFillableAmountPlusFees).to.be.bignumber.lessThan(remainingMakerTokenAmount); }); }); }); -- cgit