diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-05-18 02:58:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-18 02:58:31 +0800 |
commit | a26cc7c14d4e59102d5f84d534f75c42b8683cad (patch) | |
tree | 9ba1037b78d53f4216878bda5a344ee2eb89231f /packages/connect | |
parent | cec76c33b6a33d2c36305bd581de628641c14d5e (diff) | |
parent | 251218af8b3947d0bad531d995dbb4e161058143 (diff) | |
download | dexon-0x-contracts-a26cc7c14d4e59102d5f84d534f75c42b8683cad.tar dexon-0x-contracts-a26cc7c14d4e59102d5f84d534f75c42b8683cad.tar.gz dexon-0x-contracts-a26cc7c14d4e59102d5f84d534f75c42b8683cad.tar.bz2 dexon-0x-contracts-a26cc7c14d4e59102d5f84d534f75c42b8683cad.tar.lz dexon-0x-contracts-a26cc7c14d4e59102d5f84d534f75c42b8683cad.tar.xz dexon-0x-contracts-a26cc7c14d4e59102d5f84d534f75c42b8683cad.tar.zst dexon-0x-contracts-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/connect')
-rw-r--r-- | packages/connect/package.json | 3 | ||||
-rw-r--r-- | packages/connect/test/http_client_test.ts | 1 | ||||
-rw-r--r-- | packages/connect/test/orderbook_channel_message_parsers_test.ts | 1 | ||||
-rw-r--r-- | packages/connect/test/ws_orderbook_channel_test.ts | 1 |
4 files changed, 5 insertions, 1 deletions
diff --git a/packages/connect/package.json b/packages/connect/package.json index d52fb450e..65aa50a42 100644 --- a/packages/connect/package.json +++ b/packages/connect/package.json @@ -2,7 +2,7 @@ "name": "@0xproject/connect", "version": "0.6.12", "engines": { - "node" : ">=6.12" + "node": ">=6.12" }, "description": "A javascript library for interacting with the standard relayer api", "keywords": [ @@ -74,6 +74,7 @@ "copyfiles": "^1.2.0", "dirty-chai": "^2.0.1", "fetch-mock": "^5.13.1", + "make-promises-safe": "^1.1.0", "mocha": "^4.0.1", "npm-run-all": "^4.1.2", "nyc": "^11.0.1", diff --git a/packages/connect/test/http_client_test.ts b/packages/connect/test/http_client_test.ts index 311dc96e6..30028ec41 100644 --- a/packages/connect/test/http_client_test.ts +++ b/packages/connect/test/http_client_test.ts @@ -3,6 +3,7 @@ import * as chai from 'chai'; import * as chaiAsPromised from 'chai-as-promised'; import * as dirtyChai from 'dirty-chai'; import * as fetchMock from 'fetch-mock'; +import 'make-promises-safe'; import 'mocha'; import { HttpClient } from '../src/index'; diff --git a/packages/connect/test/orderbook_channel_message_parsers_test.ts b/packages/connect/test/orderbook_channel_message_parsers_test.ts index 3e1f44384..630c95da9 100644 --- a/packages/connect/test/orderbook_channel_message_parsers_test.ts +++ b/packages/connect/test/orderbook_channel_message_parsers_test.ts @@ -1,5 +1,6 @@ import * as chai from 'chai'; import * as dirtyChai from 'dirty-chai'; +import 'make-promises-safe'; import 'mocha'; import { orderbookChannelMessageParser } from '../src/utils/orderbook_channel_message_parser'; diff --git a/packages/connect/test/ws_orderbook_channel_test.ts b/packages/connect/test/ws_orderbook_channel_test.ts index ce404d934..b84629221 100644 --- a/packages/connect/test/ws_orderbook_channel_test.ts +++ b/packages/connect/test/ws_orderbook_channel_test.ts @@ -1,6 +1,7 @@ import * as chai from 'chai'; import * as dirtyChai from 'dirty-chai'; import * as _ from 'lodash'; +import 'make-promises-safe'; import 'mocha'; import { WebSocketOrderbookChannel } from '../src/ws_orderbook_channel'; |