aboutsummaryrefslogtreecommitdiffstats
path: root/packages/connect/test
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-08-21 02:51:26 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-08-21 02:51:26 +0800
commit1ae11ed8ae2cbe0f60a70925c9c8d348745c96c7 (patch)
tree348a27c61c01dfb4c64e90de70fa1531eac9ab41 /packages/connect/test
parent075e3a41c876797907e3ad98f20940e32e8d0762 (diff)
downloaddexon-sol-tools-1ae11ed8ae2cbe0f60a70925c9c8d348745c96c7.tar
dexon-sol-tools-1ae11ed8ae2cbe0f60a70925c9c8d348745c96c7.tar.gz
dexon-sol-tools-1ae11ed8ae2cbe0f60a70925c9c8d348745c96c7.tar.bz2
dexon-sol-tools-1ae11ed8ae2cbe0f60a70925c9c8d348745c96c7.tar.lz
dexon-sol-tools-1ae11ed8ae2cbe0f60a70925c9c8d348745c96c7.tar.xz
dexon-sol-tools-1ae11ed8ae2cbe0f60a70925c9c8d348745c96c7.tar.zst
dexon-sol-tools-1ae11ed8ae2cbe0f60a70925c9c8d348745c96c7.zip
lint everything
Diffstat (limited to 'packages/connect/test')
-rw-r--r--packages/connect/test/http_client_test.ts5
-rw-r--r--packages/connect/test/orders_channel_factory_test.ts6
-rw-r--r--packages/connect/test/ws_orders_channel_test.ts6
3 files changed, 8 insertions, 9 deletions
diff --git a/packages/connect/test/http_client_test.ts b/packages/connect/test/http_client_test.ts
index 9ead010d3..8b76c4c88 100644
--- a/packages/connect/test/http_client_test.ts
+++ b/packages/connect/test/http_client_test.ts
@@ -1,4 +1,3 @@
-import { BigNumber } from '@0xproject/utils';
import * as chai from 'chai';
import * as chaiAsPromised from 'chai-as-promised';
import * as dirtyChai from 'dirty-chai';
@@ -9,6 +8,8 @@ import { HttpClient } from '../src/index';
import { assetDataPairsResponse } from './fixtures/standard_relayer_api/asset_pairs';
import * as assetDataPairsResponseJSON from './fixtures/standard_relayer_api/asset_pairs.json';
+import { feeRecipientsResponse } from './fixtures/standard_relayer_api/fee_recipients';
+import * as feeRecipientsResponseJSON from './fixtures/standard_relayer_api/fee_recipients.json';
import { orderResponse } from './fixtures/standard_relayer_api/order/0xabc67323774bdbd24d94f977fa9ac94a50f016026fd13f42990861238897721f';
import * as orderResponseJSON from './fixtures/standard_relayer_api/order/0xabc67323774bdbd24d94f977fa9ac94a50f016026fd13f42990861238897721f.json';
import { orderConfigResponse } from './fixtures/standard_relayer_api/order_config';
@@ -17,8 +18,6 @@ import { orderbookResponse } from './fixtures/standard_relayer_api/orderbook';
import * as orderbookJSON from './fixtures/standard_relayer_api/orderbook.json';
import { ordersResponse } from './fixtures/standard_relayer_api/orders';
import * as ordersResponseJSON from './fixtures/standard_relayer_api/orders.json';
-import { feeRecipientsResponse } from './fixtures/standard_relayer_api/fee_recipients';
-import * as feeRecipientsResponseJSON from './fixtures/standard_relayer_api/fee_recipients.json';
chai.config.includeStack = true;
chai.use(dirtyChai);
diff --git a/packages/connect/test/orders_channel_factory_test.ts b/packages/connect/test/orders_channel_factory_test.ts
index fcd07dd35..58f7e08d9 100644
--- a/packages/connect/test/orders_channel_factory_test.ts
+++ b/packages/connect/test/orders_channel_factory_test.ts
@@ -9,9 +9,9 @@ chai.config.includeStack = true;
chai.use(dirtyChai);
const expect = chai.expect;
const emptyOrdersChannelHandler = {
- onUpdate: _.noop,
- onError: _.noop,
- onClose: _.noop,
+ onUpdate: _.noop.bind(_),
+ onError: _.noop.bind(_),
+ onClose: _.noop.bind(_),
};
describe('ordersChannelFactory', () => {
diff --git a/packages/connect/test/ws_orders_channel_test.ts b/packages/connect/test/ws_orders_channel_test.ts
index 98eb24e6e..df30bc41d 100644
--- a/packages/connect/test/ws_orders_channel_test.ts
+++ b/packages/connect/test/ws_orders_channel_test.ts
@@ -11,9 +11,9 @@ chai.config.includeStack = true;
chai.use(dirtyChai);
const expect = chai.expect;
const emptyOrdersChannelHandler = {
- onUpdate: _.noop,
- onError: _.noop,
- onClose: _.noop,
+ onUpdate: _.noop.bind(_),
+ onError: _.noop.bind(_),
+ onClose: _.noop.bind(_),
};
describe('WebSocketOrdersChannel', () => {