aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-utils
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/order-utils
parentc06ed585823ec88b8330db253283fe0c4c4521fe (diff)
downloaddexon-sol-tools-251218af8b3947d0bad531d995dbb4e161058143.tar.gz
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/order-utils')
-rw-r--r--packages/order-utils/package.json3
-rw-r--r--packages/order-utils/test/assert_test.ts1
-rw-r--r--packages/order-utils/test/order_hash_test.ts1
-rw-r--r--packages/order-utils/test/signature_utils_test.ts1
4 files changed, 5 insertions, 1 deletions
diff --git a/packages/order-utils/package.json b/packages/order-utils/package.json
index 35a486a6b..63caaec34 100644
--- a/packages/order-utils/package.json
+++ b/packages/order-utils/package.json
@@ -2,7 +2,7 @@
"name": "@0xproject/order-utils",
"version": "0.0.4",
"engines": {
- "node" : ">=6.12"
+ "node": ">=6.12"
},
"description": "0x order utils",
"main": "lib/src/index.js",
@@ -52,6 +52,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",
"shx": "^0.2.2",
diff --git a/packages/order-utils/test/assert_test.ts b/packages/order-utils/test/assert_test.ts
index dfd19bf86..033fd6732 100644
--- a/packages/order-utils/test/assert_test.ts
+++ b/packages/order-utils/test/assert_test.ts
@@ -1,5 +1,6 @@
import { web3Factory } from '@0xproject/dev-utils';
import * as chai from 'chai';
+import 'make-promises-safe';
import 'mocha';
import { assert } from '../src/assert';
diff --git a/packages/order-utils/test/order_hash_test.ts b/packages/order-utils/test/order_hash_test.ts
index b6dda1a43..db5489509 100644
--- a/packages/order-utils/test/order_hash_test.ts
+++ b/packages/order-utils/test/order_hash_test.ts
@@ -1,6 +1,7 @@
import { web3Factory } from '@0xproject/dev-utils';
import { BigNumber } from '@0xproject/utils';
import * as chai from 'chai';
+import 'make-promises-safe';
import 'mocha';
import { constants, getOrderHashHex } from '../src';
diff --git a/packages/order-utils/test/signature_utils_test.ts b/packages/order-utils/test/signature_utils_test.ts
index 553ec2e53..4b4de9217 100644
--- a/packages/order-utils/test/signature_utils_test.ts
+++ b/packages/order-utils/test/signature_utils_test.ts
@@ -3,6 +3,7 @@ import { JSONRPCErrorCallback, JSONRPCRequestPayload } from '@0xproject/types';
import { BigNumber } from '@0xproject/utils';
import * as chai from 'chai';
import * as _ from 'lodash';
+import 'make-promises-safe';
import 'mocha';
import * as Sinon from 'sinon';