diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-05-18 02:58:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-18 02:58:31 +0800 |
commit | a26cc7c14d4e59102d5f84d534f75c42b8683cad (patch) | |
tree | 9ba1037b78d53f4216878bda5a344ee2eb89231f /packages/contract-wrappers | |
parent | cec76c33b6a33d2c36305bd581de628641c14d5e (diff) | |
parent | 251218af8b3947d0bad531d995dbb4e161058143 (diff) | |
download | dexon-0x-contracts-a26cc7c14d4e59102d5f84d534f75c42b8683cad.tar dexon-0x-contracts-a26cc7c14d4e59102d5f84d534f75c42b8683cad.tar.gz dexon-0x-contracts-a26cc7c14d4e59102d5f84d534f75c42b8683cad.tar.bz2 dexon-0x-contracts-a26cc7c14d4e59102d5f84d534f75c42b8683cad.tar.lz dexon-0x-contracts-a26cc7c14d4e59102d5f84d534f75c42b8683cad.tar.xz dexon-0x-contracts-a26cc7c14d4e59102d5f84d534f75c42b8683cad.tar.zst dexon-0x-contracts-a26cc7c14d4e59102d5f84d534f75c42b8683cad.zip |
Merge pull request #597 from 0xProject/make-promises-safe
Use make-promises-safe to catch unhandled rejections in tests
Diffstat (limited to 'packages/contract-wrappers')
10 files changed, 11 insertions, 1 deletions
diff --git a/packages/contract-wrappers/package.json b/packages/contract-wrappers/package.json index 5042a14e7..6cb16c2c0 100644 --- a/packages/contract-wrappers/package.json +++ b/packages/contract-wrappers/package.json @@ -45,10 +45,10 @@ }, "devDependencies": { "@0xproject/abi-gen": "^0.2.13", - "@0xproject/sol-compiler": "^0.4.3", "@0xproject/dev-utils": "^0.4.1", "@0xproject/migrations": "^0.0.5", "@0xproject/monorepo-scripts": "^0.1.19", + "@0xproject/sol-compiler": "^0.4.3", "@0xproject/subproviders": "^0.10.1", "@0xproject/tslint-config": "^0.4.17", "@types/lodash": "4.14.104", @@ -62,6 +62,7 @@ "chai-bignumber": "^2.0.1", "copyfiles": "^1.2.0", "dirty-chai": "^2.0.1", + "make-promises-safe": "^1.1.0", "mocha": "^4.0.1", "npm-run-all": "^4.1.2", "nyc": "^11.0.1", diff --git a/packages/contract-wrappers/test/artifacts_test.ts b/packages/contract-wrappers/test/artifacts_test.ts index 5d7261e09..446b8f9d1 100644 --- a/packages/contract-wrappers/test/artifacts_test.ts +++ b/packages/contract-wrappers/test/artifacts_test.ts @@ -1,5 +1,6 @@ import { web3Factory } from '@0xproject/dev-utils'; import * as fs from 'fs'; +import 'make-promises-safe'; import { ContractWrappers } from '../src'; diff --git a/packages/contract-wrappers/test/ether_token_wrapper_test.ts b/packages/contract-wrappers/test/ether_token_wrapper_test.ts index e9a9705b1..974db34b1 100644 --- a/packages/contract-wrappers/test/ether_token_wrapper_test.ts +++ b/packages/contract-wrappers/test/ether_token_wrapper_test.ts @@ -3,6 +3,7 @@ import { DoneCallback } from '@0xproject/types'; import { BigNumber } from '@0xproject/utils'; import { Web3Wrapper } from '@0xproject/web3-wrapper'; import * as chai from 'chai'; +import 'make-promises-safe'; import 'mocha'; import { diff --git a/packages/contract-wrappers/test/exchange_transfer_simulator_test.ts b/packages/contract-wrappers/test/exchange_transfer_simulator_test.ts index b4ea91181..77c73ba8f 100644 --- a/packages/contract-wrappers/test/exchange_transfer_simulator_test.ts +++ b/packages/contract-wrappers/test/exchange_transfer_simulator_test.ts @@ -2,6 +2,7 @@ import { BlockchainLifecycle, devConstants } from '@0xproject/dev-utils'; import { BlockParamLiteral, Token } from '@0xproject/types'; import { BigNumber } from '@0xproject/utils'; import * as chai from 'chai'; +import 'make-promises-safe'; import { ContractWrappers, ExchangeContractErrs } from '../src'; import { TradeSide, TransferType } from '../src/types'; diff --git a/packages/contract-wrappers/test/exchange_wrapper_test.ts b/packages/contract-wrappers/test/exchange_wrapper_test.ts index fc0a23485..99384e0fa 100644 --- a/packages/contract-wrappers/test/exchange_wrapper_test.ts +++ b/packages/contract-wrappers/test/exchange_wrapper_test.ts @@ -6,6 +6,7 @@ import { BigNumber } from '@0xproject/utils'; import { Web3Wrapper } from '@0xproject/web3-wrapper'; import * as chai from 'chai'; import * as _ from 'lodash'; +import 'make-promises-safe'; import 'mocha'; import { diff --git a/packages/contract-wrappers/test/order_validation_test.ts b/packages/contract-wrappers/test/order_validation_test.ts index d28549ba2..2acdece3e 100644 --- a/packages/contract-wrappers/test/order_validation_test.ts +++ b/packages/contract-wrappers/test/order_validation_test.ts @@ -4,6 +4,7 @@ import { OrderError } from '@0xproject/order-utils'; import { BlockParamLiteral } from '@0xproject/types'; import { BigNumber } from '@0xproject/utils'; import * as chai from 'chai'; +import 'make-promises-safe'; import * as Sinon from 'sinon'; import { ContractWrappers, ContractWrappersError, ExchangeContractErrs, SignedOrder, Token } from '../src'; diff --git a/packages/contract-wrappers/test/subscription_test.ts b/packages/contract-wrappers/test/subscription_test.ts index 64262ad9c..65c76e47f 100644 --- a/packages/contract-wrappers/test/subscription_test.ts +++ b/packages/contract-wrappers/test/subscription_test.ts @@ -2,6 +2,7 @@ import { BlockchainLifecycle, callbackErrorReporter, devConstants } from '@0xpro import { DoneCallback } from '@0xproject/types'; import { BigNumber } from '@0xproject/utils'; import * as _ from 'lodash'; +import 'make-promises-safe'; import 'mocha'; import * as Sinon from 'sinon'; diff --git a/packages/contract-wrappers/test/token_registry_wrapper_test.ts b/packages/contract-wrappers/test/token_registry_wrapper_test.ts index a21efed21..0e9ddd245 100644 --- a/packages/contract-wrappers/test/token_registry_wrapper_test.ts +++ b/packages/contract-wrappers/test/token_registry_wrapper_test.ts @@ -2,6 +2,7 @@ import { BlockchainLifecycle, devConstants } from '@0xproject/dev-utils'; import { schemas, SchemaValidator } from '@0xproject/json-schemas'; import * as chai from 'chai'; import * as _ from 'lodash'; +import 'make-promises-safe'; import 'mocha'; import { ContractWrappers, Token } from '../src'; diff --git a/packages/contract-wrappers/test/token_transfer_proxy_wrapper_test.ts b/packages/contract-wrappers/test/token_transfer_proxy_wrapper_test.ts index 0b66985aa..0110e437f 100644 --- a/packages/contract-wrappers/test/token_transfer_proxy_wrapper_test.ts +++ b/packages/contract-wrappers/test/token_transfer_proxy_wrapper_test.ts @@ -1,4 +1,5 @@ import * as chai from 'chai'; +import 'make-promises-safe'; import { ContractWrappers } from '../src'; diff --git a/packages/contract-wrappers/test/token_wrapper_test.ts b/packages/contract-wrappers/test/token_wrapper_test.ts index 053901c85..9280f65cb 100644 --- a/packages/contract-wrappers/test/token_wrapper_test.ts +++ b/packages/contract-wrappers/test/token_wrapper_test.ts @@ -3,6 +3,7 @@ import { EmptyWalletSubprovider } from '@0xproject/subproviders'; import { DoneCallback, Provider } from '@0xproject/types'; import { BigNumber } from '@0xproject/utils'; import * as chai from 'chai'; +import 'make-promises-safe'; import 'mocha'; import Web3ProviderEngine = require('web3-provider-engine'); |