aboutsummaryrefslogtreecommitdiffstats
path: root/packages/base-contract
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/base-contract
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/base-contract')
-rw-r--r--packages/base-contract/package.json3
-rw-r--r--packages/base-contract/test/utils_test.ts1
2 files changed, 3 insertions, 1 deletions
diff --git a/packages/base-contract/package.json b/packages/base-contract/package.json
index 8a048112c..ca59dc4c8 100644
--- a/packages/base-contract/package.json
+++ b/packages/base-contract/package.json
@@ -2,7 +2,7 @@
"name": "@0xproject/base-contract",
"version": "0.3.1",
"engines": {
- "node" : ">=6.12"
+ "node": ">=6.12"
},
"description": "0x Base TS contract",
"main": "lib/src/index.js",
@@ -34,6 +34,7 @@
"@types/lodash": "4.14.104",
"chai": "^4.0.1",
"copyfiles": "^1.2.0",
+ "make-promises-safe": "^1.1.0",
"mocha": "^4.0.1",
"npm-run-all": "^4.1.2",
"shx": "^0.2.2",
diff --git a/packages/base-contract/test/utils_test.ts b/packages/base-contract/test/utils_test.ts
index c083704f4..316b0b310 100644
--- a/packages/base-contract/test/utils_test.ts
+++ b/packages/base-contract/test/utils_test.ts
@@ -1,5 +1,6 @@
import { BigNumber } from '@0xproject/utils';
import * as chai from 'chai';
+import 'make-promises-safe';
import 'mocha';
import { formatABIDataItem } from '../src/utils';