diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-15 07:55:52 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-15 07:55:52 +0800 |
commit | 219902a169f662737de68e8c79e1cb6a164ad548 (patch) | |
tree | 5daae8dddafccb86bc7672104113a812b8cc0fab | |
parent | ab10119c5af208be60782395b1faff906f0948f2 (diff) | |
download | dexon-sol-tools-219902a169f662737de68e8c79e1cb6a164ad548.tar dexon-sol-tools-219902a169f662737de68e8c79e1cb6a164ad548.tar.gz dexon-sol-tools-219902a169f662737de68e8c79e1cb6a164ad548.tar.bz2 dexon-sol-tools-219902a169f662737de68e8c79e1cb6a164ad548.tar.lz dexon-sol-tools-219902a169f662737de68e8c79e1cb6a164ad548.tar.xz dexon-sol-tools-219902a169f662737de68e8c79e1cb6a164ad548.tar.zst dexon-sol-tools-219902a169f662737de68e8c79e1cb6a164ad548.zip |
rename boolean var
-rw-r--r-- | packages/asset-buyer/test/utils/test_helpers.ts | 6 |
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(); }, }; |