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/sra-report | |
parent | c06ed585823ec88b8330db253283fe0c4c4521fe (diff) | |
download | dexon-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/sra-report')
-rw-r--r-- | packages/sra-report/package.json | 3 | ||||
-rw-r--r-- | packages/sra-report/test/postman_collection_v0_test.ts | 1 | ||||
-rw-r--r-- | packages/sra-report/test/test_runner.ts | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/packages/sra-report/package.json b/packages/sra-report/package.json index 5d2245cc1..9622acd2e 100644 --- a/packages/sra-report/package.json +++ b/packages/sra-report/package.json @@ -2,7 +2,7 @@ "name": "@0xproject/sra-report", "version": "0.0.14", "engines": { - "node" : ">=6.12" + "node": ">=6.12" }, "description": "Generate reports for standard relayer API compliance", "main": "lib/src/index.js", @@ -54,6 +54,7 @@ "chai-as-promised": "^7.1.0", "copyfiles": "^1.2.0", "dirty-chai": "^2.0.1", + "make-promises-safe": "^1.1.0", "mocha": "^4.0.1", "nock": "^9.2.3", "npm-run-all": "^4.1.2", diff --git a/packages/sra-report/test/postman_collection_v0_test.ts b/packages/sra-report/test/postman_collection_v0_test.ts index dfb16b10d..5a2fc2520 100644 --- a/packages/sra-report/test/postman_collection_v0_test.ts +++ b/packages/sra-report/test/postman_collection_v0_test.ts @@ -1,3 +1,4 @@ +import 'make-promises-safe'; import 'mocha'; import * as nock from 'nock'; diff --git a/packages/sra-report/test/test_runner.ts b/packages/sra-report/test/test_runner.ts index 91ef6aa4e..5ea3cdc4d 100644 --- a/packages/sra-report/test/test_runner.ts +++ b/packages/sra-report/test/test_runner.ts @@ -2,6 +2,7 @@ import * as chai from 'chai'; import * as chaiAsPromised from 'chai-as-promised'; import * as dirtyChai from 'dirty-chai'; import * as _ from 'lodash'; +import 'make-promises-safe'; import 'mocha'; import { NewmanRunExecution, |