aboutsummaryrefslogtreecommitdiffstats
path: root/packages/asset-buyer
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2019-01-17 01:38:38 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2019-01-17 01:38:38 +0800
commitbd5850f390857f48d698535d09b9a12d8985622f (patch)
treec96c7208db818768c2cf11cd265040461f389c69 /packages/asset-buyer
parentce1c2eeab78cfe1ce79a856f3f3f03b9f2bd67e4 (diff)
parentb08d6c3b4d982b52f908da9c8ddcd313413cbd45 (diff)
downloaddexon-0x-contracts-bd5850f390857f48d698535d09b9a12d8985622f.tar.gz
dexon-0x-contracts-bd5850f390857f48d698535d09b9a12d8985622f.tar.zst
dexon-0x-contracts-bd5850f390857f48d698535d09b9a12d8985622f.zip
Merge branch 'development' into feature/instant/asset-buyer-check-liquidity
Diffstat (limited to 'packages/asset-buyer')
-rw-r--r--packages/asset-buyer/test/buy_quote_calculator_test.ts4
-rw-r--r--packages/asset-buyer/test/utils/test_helpers.ts2
2 files changed, 3 insertions, 3 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', () => {
diff --git a/packages/asset-buyer/test/utils/test_helpers.ts b/packages/asset-buyer/test/utils/test_helpers.ts
index 9c7c244af..04a58d2c8 100644
--- a/packages/asset-buyer/test/utils/test_helpers.ts
+++ b/packages/asset-buyer/test/utils/test_helpers.ts
@@ -6,7 +6,7 @@ export const testHelpers = {
expectInsufficientLiquidityError: (
expect: Chai.ExpectStatic,
functionWhichTriggersError: () => void,
- expectedAmountAvailableToFill?: BigNumber,
+ expectedAmountAvailableToFill: BigNumber,
): void => {
let wasErrorThrown = false;
try {