diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-07-12 02:46:28 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-07-12 02:46:28 +0800 |
commit | e5617dfe615da42d794a43924cb1fa9240af1f0d (patch) | |
tree | 385935a6d86c52559969203b19922ea9c9c173fe /packages/connect | |
parent | e67d67419f893782fc379a9554580896b4f0cdab (diff) | |
download | dexon-sol-tools-e5617dfe615da42d794a43924cb1fa9240af1f0d.tar dexon-sol-tools-e5617dfe615da42d794a43924cb1fa9240af1f0d.tar.gz dexon-sol-tools-e5617dfe615da42d794a43924cb1fa9240af1f0d.tar.bz2 dexon-sol-tools-e5617dfe615da42d794a43924cb1fa9240af1f0d.tar.lz dexon-sol-tools-e5617dfe615da42d794a43924cb1fa9240af1f0d.tar.xz dexon-sol-tools-e5617dfe615da42d794a43924cb1fa9240af1f0d.tar.zst dexon-sol-tools-e5617dfe615da42d794a43924cb1fa9240af1f0d.zip |
Lint fixes
Diffstat (limited to 'packages/connect')
-rw-r--r-- | packages/connect/src/utils/assert.ts | 3 | ||||
-rw-r--r-- | packages/connect/src/ws_orderbook_channel.ts | 2 | ||||
-rw-r--r-- | packages/connect/test/orderbook_channel_factory_test.ts | 1 |
3 files changed, 2 insertions, 4 deletions
diff --git a/packages/connect/src/utils/assert.ts b/packages/connect/src/utils/assert.ts index b5d5283bd..a0fd12fbd 100644 --- a/packages/connect/src/utils/assert.ts +++ b/packages/connect/src/utils/assert.ts @@ -4,6 +4,7 @@ import { assert as sharedAssert } from '@0xproject/assert'; import { Schema, schemas } from '@0xproject/json-schemas'; // tslint:disable-next-line:no-unused-variable import { ECSignature } from '@0xproject/types'; +// tslint:disable-next-line:no-unused-variable import { BigNumber } from '@0xproject/utils'; import * as _ from 'lodash'; @@ -11,7 +12,7 @@ export const assert = { ...sharedAssert, isOrderbookChannelSubscriptionOpts(variableName: string, subscriptionOpts: any): void { sharedAssert.doesConformToSchema( - 'subscriptionOpts', + variableName, subscriptionOpts, schemas.relayerApiOrderbookChannelSubscribePayload, ); diff --git a/packages/connect/src/ws_orderbook_channel.ts b/packages/connect/src/ws_orderbook_channel.ts index e5d31607a..e1c55cce3 100644 --- a/packages/connect/src/ws_orderbook_channel.ts +++ b/packages/connect/src/ws_orderbook_channel.ts @@ -6,8 +6,6 @@ import { OrderbookChannelHandler, OrderbookChannelMessageTypes, OrderbookChannelSubscriptionOpts, - WebsocketClientEventType, - WebsocketConnectionEventType, } from './types'; import { assert } from './utils/assert'; import { orderbookChannelMessageParser } from './utils/orderbook_channel_message_parser'; diff --git a/packages/connect/test/orderbook_channel_factory_test.ts b/packages/connect/test/orderbook_channel_factory_test.ts index d2140bfa6..2ce361bd2 100644 --- a/packages/connect/test/orderbook_channel_factory_test.ts +++ b/packages/connect/test/orderbook_channel_factory_test.ts @@ -2,7 +2,6 @@ import * as chai from 'chai'; import * as dirtyChai from 'dirty-chai'; import * as _ from 'lodash'; import 'mocha'; -import * as WebSocket from 'websocket'; import { orderbookChannelFactory } from '../src/orderbook_channel_factory'; |