aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-compiler
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/sol-compiler
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/sol-compiler')
-rw-r--r--packages/sol-compiler/package.json2
-rw-r--r--packages/sol-compiler/test/compiler_test.ts1
-rw-r--r--packages/sol-compiler/test/compiler_utils_test.ts1
3 files changed, 1 insertions, 3 deletions
diff --git a/packages/sol-compiler/package.json b/packages/sol-compiler/package.json
index deeed8299..98568c270 100644
--- a/packages/sol-compiler/package.json
+++ b/packages/sol-compiler/package.json
@@ -14,7 +14,7 @@
"update_contract_fixtures": "copyfiles 'test/fixtures/contracts/**/*' ./lib",
"test": "yarn run_mocha",
"rebuild_and_test": "run-s build test",
- "run_mocha": "mocha --require source-map-support/register lib/test/*_test.js --bail --exit",
+ "run_mocha": "mocha --require source-map-support/register --require make-promises-safe lib/test/*_test.js --bail --exit",
"test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
"coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
"clean": "shx rm -rf lib scripts",
diff --git a/packages/sol-compiler/test/compiler_test.ts b/packages/sol-compiler/test/compiler_test.ts
index 54a117c5a..ce359dceb 100644
--- a/packages/sol-compiler/test/compiler_test.ts
+++ b/packages/sol-compiler/test/compiler_test.ts
@@ -1,6 +1,5 @@
import { DoneCallback } from '@0xproject/types';
import * as chai from 'chai';
-import 'make-promises-safe';
import 'mocha';
import { Compiler } from '../src/compiler';
diff --git a/packages/sol-compiler/test/compiler_utils_test.ts b/packages/sol-compiler/test/compiler_utils_test.ts
index a6143a719..4fe7b994e 100644
--- a/packages/sol-compiler/test/compiler_utils_test.ts
+++ b/packages/sol-compiler/test/compiler_utils_test.ts
@@ -1,7 +1,6 @@
import * as chai from 'chai';
import * as dirtyChai from 'dirty-chai';
import * as _ from 'lodash';
-import 'make-promises-safe';
import 'mocha';
import {