aboutsummaryrefslogtreecommitdiffstats
path: root/packages/json-schemas
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-06-22 10:17:33 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-06-22 10:17:33 +0800
commit4012e31115dd0571d742b42a48094f41fd53a460 (patch)
tree098fa8e9ec0d22cb477bd982c9bcaab1610434c1 /packages/json-schemas
parent7c0fdc7ecf170e17aa27cb88a2b62a02ea49ca41 (diff)
downloaddexon-sol-tools-4012e31115dd0571d742b42a48094f41fd53a460.tar
dexon-sol-tools-4012e31115dd0571d742b42a48094f41fd53a460.tar.gz
dexon-sol-tools-4012e31115dd0571d742b42a48094f41fd53a460.tar.bz2
dexon-sol-tools-4012e31115dd0571d742b42a48094f41fd53a460.tar.lz
dexon-sol-tools-4012e31115dd0571d742b42a48094f41fd53a460.tar.xz
dexon-sol-tools-4012e31115dd0571d742b42a48094f41fd53a460.tar.zst
dexon-sol-tools-4012e31115dd0571d742b42a48094f41fd53a460.zip
Use make-promises-safe as a preloader instead of manually importing
Diffstat (limited to 'packages/json-schemas')
-rw-r--r--packages/json-schemas/package.json2
-rw-r--r--packages/json-schemas/test/schema_test.ts1
2 files changed, 1 insertions, 2 deletions
diff --git a/packages/json-schemas/package.json b/packages/json-schemas/package.json
index 66ef364d6..f7c9d101b 100644
--- a/packages/json-schemas/package.json
+++ b/packages/json-schemas/package.json
@@ -15,7 +15,7 @@
"test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
"coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
"test:circleci": "yarn test:coverage",
- "run_mocha": "mocha --require source-map-support/register lib/test/**/*_test.js --exit",
+ "run_mocha": "mocha --require source-map-support/register --require make-promises-safe lib/test/**/*_test.js --exit",
"clean": "shx rm -rf lib test_temp scripts",
"build": "tsc && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts",
"manual:postpublish": "yarn build; node ./scripts/postpublish.js",
diff --git a/packages/json-schemas/test/schema_test.ts b/packages/json-schemas/test/schema_test.ts
index 3858c7fa7..d202b5643 100644
--- a/packages/json-schemas/test/schema_test.ts
+++ b/packages/json-schemas/test/schema_test.ts
@@ -2,7 +2,6 @@ import { BigNumber } from '@0xproject/utils';
import * as chai from 'chai';
import * as dirtyChai from 'dirty-chai';
import forEach = require('lodash.foreach');
-import 'make-promises-safe';
import 'mocha';
import { schemas, SchemaValidator } from '../src/index';