aboutsummaryrefslogtreecommitdiffstats
path: root/packages/asset-buyer
diff options
context:
space:
mode:
Diffstat (limited to 'packages/asset-buyer')
-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();
},
};