aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-15 07:55:52 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-15 07:55:52 +0800
commit219902a169f662737de68e8c79e1cb6a164ad548 (patch)
tree5daae8dddafccb86bc7672104113a812b8cc0fab
parentab10119c5af208be60782395b1faff906f0948f2 (diff)
downloaddexon-sol-tools-219902a169f662737de68e8c79e1cb6a164ad548.tar.gz
dexon-sol-tools-219902a169f662737de68e8c79e1cb6a164ad548.tar.zst
dexon-sol-tools-219902a169f662737de68e8c79e1cb6a164ad548.zip
rename boolean var
-rw-r--r--packages/asset-buyer/test/utils/test_helpers.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/asset-buyer/test/utils/test_helpers.ts b/packages/asset-buyer/test/utils/test_helpers.ts
index d746316f8..9c7c244af 100644
--- a/packages/asset-buyer/test/utils/test_helpers.ts
+++ b/packages/asset-buyer/test/utils/test_helpers.ts
@@ -8,11 +8,11 @@ export const testHelpers = {
functionWhichTriggersError: () => void,
expectedAmountAvailableToFill?: BigNumber,
): void => {
- let errorThrown = false;
+ let wasErrorThrown = false;
try {
functionWhichTriggersError();
} catch (e) {
- errorThrown = true;
+ wasErrorThrown = true;
expect(e).to.be.instanceOf(InsufficientAssetLiquidityError);
if (expectedAmountAvailableToFill) {
expect(e.amountAvailableToFill).to.be.bignumber.equal(expectedAmountAvailableToFill);
@@ -21,6 +21,6 @@ export const testHelpers = {
}
}
- expect(errorThrown).to.be.true();
+ expect(wasErrorThrown).to.be.true();
},
};