diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-06-22 10:17:33 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-06-22 10:17:33 +0800 |
commit | 4012e31115dd0571d742b42a48094f41fd53a460 (patch) | |
tree | 098fa8e9ec0d22cb477bd982c9bcaab1610434c1 /packages/order-watcher | |
parent | 7c0fdc7ecf170e17aa27cb88a2b62a02ea49ca41 (diff) | |
download | dexon-0x-contracts-4012e31115dd0571d742b42a48094f41fd53a460.tar.gz dexon-0x-contracts-4012e31115dd0571d742b42a48094f41fd53a460.tar.zst dexon-0x-contracts-4012e31115dd0571d742b42a48094f41fd53a460.zip |
Use make-promises-safe as a preloader instead of manually importing
Diffstat (limited to 'packages/order-watcher')
-rw-r--r-- | packages/order-watcher/package.json | 2 | ||||
-rw-r--r-- | packages/order-watcher/test/event_watcher_test.ts | 1 | ||||
-rw-r--r-- | packages/order-watcher/test/expiration_watcher_test.ts | 1 | ||||
-rw-r--r-- | packages/order-watcher/test/global_hooks.ts | 1 | ||||
-rw-r--r-- | packages/order-watcher/test/order_watcher_test.ts | 1 |
5 files changed, 1 insertions, 5 deletions
diff --git a/packages/order-watcher/package.json b/packages/order-watcher/package.json index c407d25bd..6cee9da16 100644 --- a/packages/order-watcher/package.json +++ b/packages/order-watcher/package.json @@ -25,7 +25,7 @@ "update_compact_artifacts": "copyfiles -u 2 './src/compact_artifacts/**/*.json' ./lib/src/compact_artifacts", "update_test_artifacts": "for i in ${npm_package_config_contracts}; do copyfiles -u 4 ../migrations/artifacts/1.0.0/$i.json test/artifacts; done;", "clean": "shx rm -rf _bundles lib test_temp scripts test/artifacts src/generated_contract_wrappers", - "run_mocha": "mocha --require source-map-support/register lib/test/**/*_test.js lib/test/global_hooks.js --timeout 10000 --bail --exit", + "run_mocha": "mocha --require source-map-support/register --require make-promises-safe lib/test/**/*_test.js lib/test/global_hooks.js --timeout 10000 --bail --exit", "manual:postpublish": "yarn build; node ./scripts/postpublish.js" }, "config": { diff --git a/packages/order-watcher/test/event_watcher_test.ts b/packages/order-watcher/test/event_watcher_test.ts index 8a43ef8f9..9f4ac053f 100644 --- a/packages/order-watcher/test/event_watcher_test.ts +++ b/packages/order-watcher/test/event_watcher_test.ts @@ -3,7 +3,6 @@ import { DoneCallback, LogEntry, LogEntryEvent } from '@0xproject/types'; import { Web3Wrapper } from '@0xproject/web3-wrapper'; import * as chai from 'chai'; import * as _ from 'lodash'; -import 'make-promises-safe'; import 'mocha'; import * as Sinon from 'sinon'; diff --git a/packages/order-watcher/test/expiration_watcher_test.ts b/packages/order-watcher/test/expiration_watcher_test.ts index fbea93c06..dfd3556bc 100644 --- a/packages/order-watcher/test/expiration_watcher_test.ts +++ b/packages/order-watcher/test/expiration_watcher_test.ts @@ -6,7 +6,6 @@ import { DoneCallback, Token } 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'; diff --git a/packages/order-watcher/test/global_hooks.ts b/packages/order-watcher/test/global_hooks.ts index f18eef379..9d6903af5 100644 --- a/packages/order-watcher/test/global_hooks.ts +++ b/packages/order-watcher/test/global_hooks.ts @@ -1,6 +1,5 @@ import { devConstants } from '@0xproject/dev-utils'; import { runV1MigrationsAsync } from '@0xproject/migrations'; -import 'make-promises-safe'; import { provider } from './utils/web3_wrapper'; diff --git a/packages/order-watcher/test/order_watcher_test.ts b/packages/order-watcher/test/order_watcher_test.ts index ef5c7b8e0..f8175e103 100644 --- a/packages/order-watcher/test/order_watcher_test.ts +++ b/packages/order-watcher/test/order_watcher_test.ts @@ -16,7 +16,6 @@ import { BigNumber } from '@0xproject/utils'; import { Web3Wrapper } from '@0xproject/web3-wrapper'; import * as chai from 'chai'; import * as _ from 'lodash'; -import 'make-promises-safe'; import 'mocha'; import { OrderWatcher } from '../src/order_watcher/order_watcher'; |