aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-11-12 17:23:42 +0800
committerFabio Berger <me@fabioberger.com>2018-11-12 17:23:42 +0800
commitb21c1bea46a9fdd43680daf8b241c54d0483770b (patch)
tree89be2ca0e44f43332bef8f3ca2e33c1598c08d27 /packages
parentfd7ba3ecea72487ecbec428c31b5547f8691ca23 (diff)
downloaddexon-sol-tools-b21c1bea46a9fdd43680daf8b241c54d0483770b.tar
dexon-sol-tools-b21c1bea46a9fdd43680daf8b241c54d0483770b.tar.gz
dexon-sol-tools-b21c1bea46a9fdd43680daf8b241c54d0483770b.tar.bz2
dexon-sol-tools-b21c1bea46a9fdd43680daf8b241c54d0483770b.tar.lz
dexon-sol-tools-b21c1bea46a9fdd43680daf8b241c54d0483770b.tar.xz
dexon-sol-tools-b21c1bea46a9fdd43680daf8b241c54d0483770b.tar.zst
dexon-sol-tools-b21c1bea46a9fdd43680daf8b241c54d0483770b.zip
Use rejectedWith
Diffstat (limited to 'packages')
-rw-r--r--packages/contract-wrappers/test/exchange_wrapper_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/contract-wrappers/test/exchange_wrapper_test.ts b/packages/contract-wrappers/test/exchange_wrapper_test.ts
index 8058be873..1bf3005cc 100644
--- a/packages/contract-wrappers/test/exchange_wrapper_test.ts
+++ b/packages/contract-wrappers/test/exchange_wrapper_test.ts
@@ -1,7 +1,7 @@
import { BlockchainLifecycle, callbackErrorReporter } from '@0x/dev-utils';
import { FillScenarios } from '@0x/fill-scenarios';
import { assetDataUtils, orderHashUtils } from '@0x/order-utils';
-import { DoneCallback, SignedOrder } from '@0x/types';
+import { DoneCallback, RevertReason, SignedOrder } from '@0x/types';
import { BigNumber } from '@0x/utils';
import * as chai from 'chai';
import { BlockParamLiteral } from 'ethereum-types';
@@ -291,7 +291,7 @@ describe('ExchangeWrapper', () => {
expect(
contractWrappers.exchange.validateOrderFillableOrThrowAsync(signedOrderWithInvalidSignature),
- ).to.eventually.to.be.rejected();
+ ).to.eventually.to.be.rejectedWith(RevertReason.InvalidOrderSignature);
});
});
describe('#isValidSignature', () => {