diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2019-01-12 01:20:59 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2019-01-12 01:20:59 +0800 |
commit | 64a78149aa4a35aa339fb9ef80faea613ebaeffd (patch) | |
tree | bdf083da9c2ca576de596097c47a4a52c7a706d1 /packages/asset-buyer/test/buy_quote_calculator_test.ts | |
parent | cf3787edbb9e8acf7160ab93b903b54c63bdffda (diff) | |
download | dexon-sol-tools-64a78149aa4a35aa339fb9ef80faea613ebaeffd.tar dexon-sol-tools-64a78149aa4a35aa339fb9ef80faea613ebaeffd.tar.gz dexon-sol-tools-64a78149aa4a35aa339fb9ef80faea613ebaeffd.tar.bz2 dexon-sol-tools-64a78149aa4a35aa339fb9ef80faea613ebaeffd.tar.lz dexon-sol-tools-64a78149aa4a35aa339fb9ef80faea613ebaeffd.tar.xz dexon-sol-tools-64a78149aa4a35aa339fb9ef80faea613ebaeffd.tar.zst dexon-sol-tools-64a78149aa4a35aa339fb9ef80faea613ebaeffd.zip |
Update test for required amountAvailableToFill
Diffstat (limited to 'packages/asset-buyer/test/buy_quote_calculator_test.ts')
-rw-r--r-- | packages/asset-buyer/test/buy_quote_calculator_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/asset-buyer/test/buy_quote_calculator_test.ts b/packages/asset-buyer/test/buy_quote_calculator_test.ts index fdc17ef25..880f55180 100644 --- a/packages/asset-buyer/test/buy_quote_calculator_test.ts +++ b/packages/asset-buyer/test/buy_quote_calculator_test.ts @@ -168,7 +168,7 @@ describe('buyQuoteCalculator', () => { }; testHelpers.expectInsufficientLiquidityError(expect, errorFunction, new BigNumber(1)); }); - it('should throw without amount available to fill if amount rounds to 0', () => { + it('should throw with 0 available to fill if amount rounds to 0', () => { const smallOrder = orderFactory.createSignedOrderFromPartial({ makerAssetAmount: new BigNumber(1), takerAssetAmount: new BigNumber(1), @@ -184,7 +184,7 @@ describe('buyQuoteCalculator', () => { false, ); }; - testHelpers.expectInsufficientLiquidityError(expect, errorFunction, undefined); + testHelpers.expectInsufficientLiquidityError(expect, errorFunction, new BigNumber(0)); }); }); it('should not throw if order is fillable', () => { |