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/connect | |
parent | 7c0fdc7ecf170e17aa27cb88a2b62a02ea49ca41 (diff) | |
download | dexon-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/connect')
-rw-r--r-- | packages/connect/package.json | 2 | ||||
-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, 1 insertions, 4 deletions
diff --git a/packages/connect/package.json b/packages/connect/package.json index 86f7aeca2..02b23408e 100644 --- a/packages/connect/package.json +++ b/packages/connect/package.json @@ -20,7 +20,7 @@ "clean": "shx rm -rf lib test_temp scripts", "copy_test_fixtures": "copyfiles -u 2 './test/fixtures/**/*.json' ./lib/test/fixtures", "lint": "tslint --project .", - "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", "test": "run-s copy_test_fixtures run_mocha", "rebuild_and_test": "run-s clean build test", "test:coverage": "nyc npm run test --all && yarn coverage:report:lcov", diff --git a/packages/connect/test/http_client_test.ts b/packages/connect/test/http_client_test.ts index 30028ec41..311dc96e6 100644 --- a/packages/connect/test/http_client_test.ts +++ b/packages/connect/test/http_client_test.ts @@ -3,7 +3,6 @@ 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 630c95da9..3e1f44384 100644 --- a/packages/connect/test/orderbook_channel_message_parsers_test.ts +++ b/packages/connect/test/orderbook_channel_message_parsers_test.ts @@ -1,6 +1,5 @@ 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 b84629221..ce404d934 100644 --- a/packages/connect/test/ws_orderbook_channel_test.ts +++ b/packages/connect/test/ws_orderbook_channel_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 { WebSocketOrderbookChannel } from '../src/ws_orderbook_channel'; |