From ac872e518197573fddaded73745e58b4235f8af3 Mon Sep 17 00:00:00 2001 From: Greg Hysen Date: Thu, 23 Aug 2018 10:40:02 -0700 Subject: Added `expect` messages for checking left/right order states --- packages/contracts/test/utils/match_order_tester.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'packages/contracts/test') 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]; } -- cgit