diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-05-17 08:36:37 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-05-17 08:36:37 +0800 |
commit | 251218af8b3947d0bad531d995dbb4e161058143 (patch) | |
tree | 5f72bf6b84d4b073333c0b7555ce97098eafaca5 /packages/metacoin | |
parent | c06ed585823ec88b8330db253283fe0c4c4521fe (diff) | |
download | dexon-0x-contracts-251218af8b3947d0bad531d995dbb4e161058143.tar.gz dexon-0x-contracts-251218af8b3947d0bad531d995dbb4e161058143.tar.zst dexon-0x-contracts-251218af8b3947d0bad531d995dbb4e161058143.zip |
Use make-promises-safe to catch unhandled rejections in tests
Diffstat (limited to 'packages/metacoin')
-rw-r--r-- | packages/metacoin/package.json | 3 | ||||
-rw-r--r-- | packages/metacoin/test/metacoin_test.ts | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/packages/metacoin/package.json b/packages/metacoin/package.json index e8ed6f100..83d083b3f 100644 --- a/packages/metacoin/package.json +++ b/packages/metacoin/package.json @@ -2,7 +2,7 @@ "name": "@0xproject/metacoin", "version": "0.0.6", "engines": { - "node" : ">=6.12" + "node": ">=6.12" }, "private": true, "description": "Example solidity project using 0x dev tools", @@ -45,6 +45,7 @@ "chai-as-promised": "^7.1.0", "chai-bignumber": "^2.0.1", "dirty-chai": "^2.0.1", + "make-promises-safe": "^1.1.0", "npm-run-all": "^4.1.2", "shx": "^0.2.2", "tslint": "5.8.0", diff --git a/packages/metacoin/test/metacoin_test.ts b/packages/metacoin/test/metacoin_test.ts index 8369632c2..d1331a4dc 100644 --- a/packages/metacoin/test/metacoin_test.ts +++ b/packages/metacoin/test/metacoin_test.ts @@ -4,6 +4,7 @@ import { LogWithDecodedArgs } from '@0xproject/types'; import { BigNumber } from '@0xproject/utils'; import { Web3Wrapper } from '@0xproject/web3-wrapper'; import * as chai from 'chai'; +import 'make-promises-safe'; import * as MetacoinArtifact from '../artifacts/Metacoin.json'; import { MetacoinContract, TransferContractEventArgs } from '../src/contract_wrappers/metacoin'; |