aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-watcher
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-05-18 02:58:31 +0800
committerGitHub <noreply@github.com>2018-05-18 02:58:31 +0800
commita26cc7c14d4e59102d5f84d534f75c42b8683cad (patch)
tree9ba1037b78d53f4216878bda5a344ee2eb89231f /packages/order-watcher
parentcec76c33b6a33d2c36305bd581de628641c14d5e (diff)
parent251218af8b3947d0bad531d995dbb4e161058143 (diff)
downloaddexon-sol-tools-a26cc7c14d4e59102d5f84d534f75c42b8683cad.tar
dexon-sol-tools-a26cc7c14d4e59102d5f84d534f75c42b8683cad.tar.gz
dexon-sol-tools-a26cc7c14d4e59102d5f84d534f75c42b8683cad.tar.bz2
dexon-sol-tools-a26cc7c14d4e59102d5f84d534f75c42b8683cad.tar.lz
dexon-sol-tools-a26cc7c14d4e59102d5f84d534f75c42b8683cad.tar.xz
dexon-sol-tools-a26cc7c14d4e59102d5f84d534f75c42b8683cad.tar.zst
dexon-sol-tools-a26cc7c14d4e59102d5f84d534f75c42b8683cad.zip
Merge pull request #597 from 0xProject/make-promises-safe
Use make-promises-safe to catch unhandled rejections in tests
Diffstat (limited to 'packages/order-watcher')
-rw-r--r--packages/order-watcher/package.json5
-rw-r--r--packages/order-watcher/test/event_watcher_test.ts1
-rw-r--r--packages/order-watcher/test/expiration_watcher_test.ts1
-rw-r--r--packages/order-watcher/test/global_hooks.ts1
-rw-r--r--packages/order-watcher/test/order_watcher_test.ts1
-rw-r--r--packages/order-watcher/test/remaining_fillable_calculator_test.ts1
6 files changed, 8 insertions, 2 deletions
diff --git a/packages/order-watcher/package.json b/packages/order-watcher/package.json
index 50aaffd7f..d65d3f175 100644
--- a/packages/order-watcher/package.json
+++ b/packages/order-watcher/package.json
@@ -46,10 +46,10 @@
},
"devDependencies": {
"@0xproject/abi-gen": "^0.2.13",
- "@0xproject/sol-compiler": "^0.4.3",
"@0xproject/dev-utils": "^0.4.1",
"@0xproject/migrations": "^0.0.5",
"@0xproject/monorepo-scripts": "^0.1.19",
+ "@0xproject/sol-compiler": "^0.4.3",
"@0xproject/tslint-config": "^0.4.17",
"@types/bintrees": "^1.0.2",
"@types/lodash": "4.14.104",
@@ -63,6 +63,7 @@
"copyfiles": "^1.2.0",
"dirty-chai": "^2.0.1",
"json-loader": "^0.5.4",
+ "make-promises-safe": "^1.1.0",
"mocha": "^4.0.1",
"npm-run-all": "^4.1.2",
"nyc": "^11.0.1",
@@ -75,9 +76,9 @@
"typescript": "2.7.1"
},
"dependencies": {
- "@0xproject/contract-wrappers": "^0.0.1",
"@0xproject/assert": "^0.2.9",
"@0xproject/base-contract": "^0.3.1",
+ "@0xproject/contract-wrappers": "^0.0.1",
"@0xproject/fill-scenarios": "^0.0.1",
"@0xproject/json-schemas": "^0.7.23",
"@0xproject/order-utils": "^0.0.4",
diff --git a/packages/order-watcher/test/event_watcher_test.ts b/packages/order-watcher/test/event_watcher_test.ts
index b4eca315e..ba77d50dd 100644
--- a/packages/order-watcher/test/event_watcher_test.ts
+++ b/packages/order-watcher/test/event_watcher_test.ts
@@ -3,6 +3,7 @@ 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 0a2524d78..8b006f58a 100644
--- a/packages/order-watcher/test/expiration_watcher_test.ts
+++ b/packages/order-watcher/test/expiration_watcher_test.ts
@@ -6,6 +6,7 @@ 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 53b3ef545..03eab0e13 100644
--- a/packages/order-watcher/test/global_hooks.ts
+++ b/packages/order-watcher/test/global_hooks.ts
@@ -1,5 +1,6 @@
import { devConstants } from '@0xproject/dev-utils';
import { runMigrationsAsync } from '@0xproject/migrations';
+import 'make-promises-safe';
import * as path from 'path';
import { constants } from './utils/constants';
diff --git a/packages/order-watcher/test/order_watcher_test.ts b/packages/order-watcher/test/order_watcher_test.ts
index 8c9249f58..dc8e544b1 100644
--- a/packages/order-watcher/test/order_watcher_test.ts
+++ b/packages/order-watcher/test/order_watcher_test.ts
@@ -15,6 +15,7 @@ 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';
diff --git a/packages/order-watcher/test/remaining_fillable_calculator_test.ts b/packages/order-watcher/test/remaining_fillable_calculator_test.ts
index 7ec3f1ebc..ea116175b 100644
--- a/packages/order-watcher/test/remaining_fillable_calculator_test.ts
+++ b/packages/order-watcher/test/remaining_fillable_calculator_test.ts
@@ -2,6 +2,7 @@ import { ECSignature, SignedOrder } from '@0xproject/types';
import { BigNumber } from '@0xproject/utils';
import { Web3Wrapper } from '@0xproject/web3-wrapper';
import * as chai from 'chai';
+import 'make-promises-safe';
import 'mocha';
import { RemainingFillableCalculator } from '@0xproject/order-utils';