diff options
author | Fabio Berger <me@fabioberger.com> | 2018-12-17 10:00:23 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-12-17 10:00:23 +0800 |
commit | a12b9e82f61ac136876f9d4b72b45aad266317cf (patch) | |
tree | cedc18a79b993efafaf07dd937f803d0c482794e /packages/order-watcher/test | |
parent | 5d0e715d9ac9f358c1cdf23c9c96d622e0f1060c (diff) | |
download | dexon-sol-tools-a12b9e82f61ac136876f9d4b72b45aad266317cf.tar dexon-sol-tools-a12b9e82f61ac136876f9d4b72b45aad266317cf.tar.gz dexon-sol-tools-a12b9e82f61ac136876f9d4b72b45aad266317cf.tar.bz2 dexon-sol-tools-a12b9e82f61ac136876f9d4b72b45aad266317cf.tar.lz dexon-sol-tools-a12b9e82f61ac136876f9d4b72b45aad266317cf.tar.xz dexon-sol-tools-a12b9e82f61ac136876f9d4b72b45aad266317cf.tar.zst dexon-sol-tools-a12b9e82f61ac136876f9d4b72b45aad266317cf.zip |
Consolidate use of isVerbose in orderWatcherConfig
Diffstat (limited to 'packages/order-watcher/test')
-rw-r--r-- | packages/order-watcher/test/order_watcher_websocket_server_test.ts | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/packages/order-watcher/test/order_watcher_websocket_server_test.ts b/packages/order-watcher/test/order_watcher_websocket_server_test.ts index d1a947105..a66d2c6c2 100644 --- a/packages/order-watcher/test/order_watcher_websocket_server_test.ts +++ b/packages/order-watcher/test/order_watcher_websocket_server_test.ts @@ -26,7 +26,7 @@ interface WsMessage { data: string; } -describe.only('OrderWatcherWebSocketServer', async () => { +describe('OrderWatcherWebSocketServer', async () => { let contractWrappers: ContractWrappers; let wsServer: OrderWatcherWebSocketServer; let wsClient: WebSocket.w3cwebsocket; @@ -42,8 +42,6 @@ describe.only('OrderWatcherWebSocketServer', async () => { let zrxTokenAddress: string; let signedOrder: SignedOrder; let orderHash: string; - // Manually encode types rather than use /src/types to mimick real data that user - // would input. Otherwise we would be forced to use enums, which hide problems. let addOrderPayload: AddOrderRequest; let removeOrderPayload: RemoveOrderRequest; const decimals = constants.ZRX_DECIMALS; @@ -104,15 +102,10 @@ describe.only('OrderWatcherWebSocketServer', async () => { }; // Prepare OrderWatcher WebSocket server - const orderWatcherConfig = {}; - const isVerbose = true; - wsServer = new OrderWatcherWebSocketServer( - provider, - networkId, - contractAddresses, - isVerbose, - orderWatcherConfig, - ); + const orderWatcherConfig = { + isVerbose: true, + }; + wsServer = new OrderWatcherWebSocketServer(provider, networkId, contractAddresses, orderWatcherConfig); wsServer.start(); }); after(async () => { |