aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sra-report/test
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/sra-report/test
parentc06ed585823ec88b8330db253283fe0c4c4521fe (diff)
downloaddexon-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/sra-report/test')
-rw-r--r--packages/sra-report/test/postman_collection_v0_test.ts1
-rw-r--r--packages/sra-report/test/test_runner.ts1
2 files changed, 2 insertions, 0 deletions
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,