aboutsummaryrefslogtreecommitdiffstats
path: root/packages/web3-wrapper
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-05-17 08:36:37 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-05-17 08:36:37 +0800
commit251218af8b3947d0bad531d995dbb4e161058143 (patch)
tree5f72bf6b84d4b073333c0b7555ce97098eafaca5 /packages/web3-wrapper
parentc06ed585823ec88b8330db253283fe0c4c4521fe (diff)
downloaddexon-sol-tools-251218af8b3947d0bad531d995dbb4e161058143.tar
dexon-sol-tools-251218af8b3947d0bad531d995dbb4e161058143.tar.gz
dexon-sol-tools-251218af8b3947d0bad531d995dbb4e161058143.tar.bz2
dexon-sol-tools-251218af8b3947d0bad531d995dbb4e161058143.tar.lz
dexon-sol-tools-251218af8b3947d0bad531d995dbb4e161058143.tar.xz
dexon-sol-tools-251218af8b3947d0bad531d995dbb4e161058143.tar.zst
dexon-sol-tools-251218af8b3947d0bad531d995dbb4e161058143.zip
Use make-promises-safe to catch unhandled rejections in tests
Diffstat (limited to 'packages/web3-wrapper')
-rw-r--r--packages/web3-wrapper/package.json3
-rw-r--r--packages/web3-wrapper/test/web3_wrapper_test.ts1
2 files changed, 3 insertions, 1 deletions
diff --git a/packages/web3-wrapper/package.json b/packages/web3-wrapper/package.json
index c0fa45433..ed2fce7dc 100644
--- a/packages/web3-wrapper/package.json
+++ b/packages/web3-wrapper/package.json
@@ -2,7 +2,7 @@
"name": "@0xproject/web3-wrapper",
"version": "0.6.3",
"engines": {
- "node" : ">=6.12"
+ "node": ">=6.12"
},
"description": "Wraps around web3 and gives a nicer interface",
"main": "lib/src/index.js",
@@ -52,6 +52,7 @@
"copyfiles": "^1.2.0",
"dirty-chai": "^2.0.1",
"ganache-core": "0xProject/ganache-core",
+ "make-promises-safe": "^1.1.0",
"mocha": "^4.0.1",
"npm-run-all": "^4.1.2",
"nyc": "^11.0.1",
diff --git a/packages/web3-wrapper/test/web3_wrapper_test.ts b/packages/web3-wrapper/test/web3_wrapper_test.ts
index 2bf3badaa..326efe654 100644
--- a/packages/web3-wrapper/test/web3_wrapper_test.ts
+++ b/packages/web3-wrapper/test/web3_wrapper_test.ts
@@ -1,5 +1,6 @@
import * as chai from 'chai';
import * as Ganache from 'ganache-core';
+import 'make-promises-safe';
import 'mocha';
import { Web3Wrapper } from '../src';