aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts
diff options
context:
space:
mode:
authorGreg Hysen <greg.hysen@gmail.com>2018-08-24 01:40:02 +0800
committerGreg Hysen <greg.hysen@gmail.com>2018-08-25 09:20:25 +0800
commitac872e518197573fddaded73745e58b4235f8af3 (patch)
treee2b57cc1c23b062f886c2e0d06a0a48172b5e65d /packages/contracts
parent70863cca085c060d55932e5e173fc2023bda9df5 (diff)
downloaddexon-sol-tools-ac872e518197573fddaded73745e58b4235f8af3.tar
dexon-sol-tools-ac872e518197573fddaded73745e58b4235f8af3.tar.gz
dexon-sol-tools-ac872e518197573fddaded73745e58b4235f8af3.tar.bz2
dexon-sol-tools-ac872e518197573fddaded73745e58b4235f8af3.tar.lz
dexon-sol-tools-ac872e518197573fddaded73745e58b4235f8af3.tar.xz
dexon-sol-tools-ac872e518197573fddaded73745e58b4235f8af3.tar.zst
dexon-sol-tools-ac872e518197573fddaded73745e58b4235f8af3.zip
Added `expect` messages for checking left/right order states
Diffstat (limited to 'packages/contracts')
-rw-r--r--packages/contracts/test/utils/match_order_tester.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/contracts/test/utils/match_order_tester.ts b/packages/contracts/test/utils/match_order_tester.ts
index 300073eb0..98bf80011 100644
--- a/packages/contracts/test/utils/match_order_tester.ts
+++ b/packages/contracts/test/utils/match_order_tester.ts
@@ -254,7 +254,9 @@ export class MatchOrderTester {
const expectedOrderFilledAmountLeft = initialTakerAssetFilledAmountLeft
? initialTakerAssetFilledAmountLeft
: new BigNumber(0);
- expect(expectedOrderFilledAmountLeft).to.be.bignumber.equal(orderTakerAssetFilledAmountLeft);
+ expect(expectedOrderFilledAmountLeft, 'Checking inital state of left order').to.be.bignumber.equal(
+ orderTakerAssetFilledAmountLeft,
+ );
// Verify Right order preconditions
const orderTakerAssetFilledAmountRight = await this._exchangeWrapper.getTakerAssetFilledAmountAsync(
orderHashUtils.getOrderHashHex(signedOrderRight),
@@ -262,7 +264,9 @@ export class MatchOrderTester {
const expectedOrderFilledAmountRight = initialTakerAssetFilledAmountRight
? initialTakerAssetFilledAmountRight
: new BigNumber(0);
- expect(expectedOrderFilledAmountRight).to.be.bignumber.equal(orderTakerAssetFilledAmountRight);
+ expect(expectedOrderFilledAmountRight, 'Checking inital state of right order').to.be.bignumber.equal(
+ orderTakerAssetFilledAmountRight,
+ );
return [orderTakerAssetFilledAmountLeft, orderTakerAssetFilledAmountRight];
}