diff options
author | Fabio Berger <me@fabioberger.com> | 2018-11-12 17:23:42 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-11-12 17:23:42 +0800 |
commit | b21c1bea46a9fdd43680daf8b241c54d0483770b (patch) | |
tree | 89be2ca0e44f43332bef8f3ca2e33c1598c08d27 /packages/contract-wrappers | |
parent | fd7ba3ecea72487ecbec428c31b5547f8691ca23 (diff) | |
download | dexon-0x-contracts-b21c1bea46a9fdd43680daf8b241c54d0483770b.tar.gz dexon-0x-contracts-b21c1bea46a9fdd43680daf8b241c54d0483770b.tar.zst dexon-0x-contracts-b21c1bea46a9fdd43680daf8b241c54d0483770b.zip |
Use rejectedWith
Diffstat (limited to 'packages/contract-wrappers')
-rw-r--r-- | packages/contract-wrappers/test/exchange_wrapper_test.ts | 4 |
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', () => { |