aboutsummaryrefslogtreecommitdiffstats
path: root/packages/asset-buyer/test/utils
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-15 02:23:01 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-15 07:34:45 +0800
commita3d93d17cdefc2258a9f08e6fc680df1fb2b8456 (patch)
tree0f074b7205b4026b0e3b9bd84c9d8a1257411757 /packages/asset-buyer/test/utils
parentc6c45095a8511814db6aa33e39794ae60debad8b (diff)
downloaddexon-sol-tools-a3d93d17cdefc2258a9f08e6fc680df1fb2b8456.tar
dexon-sol-tools-a3d93d17cdefc2258a9f08e6fc680df1fb2b8456.tar.gz
dexon-sol-tools-a3d93d17cdefc2258a9f08e6fc680df1fb2b8456.tar.bz2
dexon-sol-tools-a3d93d17cdefc2258a9f08e6fc680df1fb2b8456.tar.lz
dexon-sol-tools-a3d93d17cdefc2258a9f08e6fc680df1fb2b8456.tar.xz
dexon-sol-tools-a3d93d17cdefc2258a9f08e6fc680df1fb2b8456.tar.zst
dexon-sol-tools-a3d93d17cdefc2258a9f08e6fc680df1fb2b8456.zip
Factor in slippage amount in InsufficientAssetLiquidityError error, and show in instant
Diffstat (limited to 'packages/asset-buyer/test/utils')
-rw-r--r--packages/asset-buyer/test/utils/test_helpers.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/asset-buyer/test/utils/test_helpers.ts b/packages/asset-buyer/test/utils/test_helpers.ts
index fd1313ac8..b99906792 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,
- expectedNumAvailable: BigNumber,
+ expectedAmountAvailableToFill: BigNumber,
): void => {
let errorThrown = false;
try {
@@ -14,7 +14,7 @@ export const testHelpers = {
} catch (e) {
errorThrown = true;
expect(e).to.be.instanceOf(InsufficientAssetLiquidityError);
- expect(e.numAssetsAvailable).to.be.bignumber.equal(expectedNumAvailable);
+ expect(e.amountAvailableToFill).to.be.bignumber.equal(expectedAmountAvailableToFill);
}
expect(errorThrown).to.be.true();