aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2017-11-15 11:21:59 +0800
committerBrandon Millman <brandon.millman@gmail.com>2017-11-15 11:37:20 +0800
commita2b89331296ac4f9bb12bafc728602f4a987fef1 (patch)
tree93867211fc416aef140f7fe8041a2e25b38b7769 /packages
parentc315ca6c0c95e61e10f52919cb0946fd980bca25 (diff)
downloaddexon-0x-contracts-a2b89331296ac4f9bb12bafc728602f4a987fef1.tar
dexon-0x-contracts-a2b89331296ac4f9bb12bafc728602f4a987fef1.tar.gz
dexon-0x-contracts-a2b89331296ac4f9bb12bafc728602f4a987fef1.tar.bz2
dexon-0x-contracts-a2b89331296ac4f9bb12bafc728602f4a987fef1.tar.lz
dexon-0x-contracts-a2b89331296ac4f9bb12bafc728602f4a987fef1.tar.xz
dexon-0x-contracts-a2b89331296ac4f9bb12bafc728602f4a987fef1.tar.zst
dexon-0x-contracts-a2b89331296ac4f9bb12bafc728602f4a987fef1.zip
Add lodash noop to emptyOrderbookChannelHandler
Diffstat (limited to 'packages')
-rw-r--r--packages/connect/test/ws_orderbook_channel_test.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/packages/connect/test/ws_orderbook_channel_test.ts b/packages/connect/test/ws_orderbook_channel_test.ts
index 1f4c98302..f3dead9ae 100644
--- a/packages/connect/test/ws_orderbook_channel_test.ts
+++ b/packages/connect/test/ws_orderbook_channel_test.ts
@@ -1,4 +1,5 @@
import 'mocha';
+import * as _ from 'lodash';
import * as dirtyChai from 'dirty-chai';
import * as chai from 'chai';
import {
@@ -19,10 +20,10 @@ describe('WebSocketOrderbookChannel', () => {
limit: 100,
};
const emptyOrderbookChannelHandler = {
- onSnapshot: () => { return; },
- onUpdate: () => { return; },
- onError: () => { return; },
- onClose: () => { return; },
+ onSnapshot: () => { _.noop(); },
+ onUpdate: () => { _.noop(); },
+ onError: () => { _.noop(); },
+ onClose: () => { _.noop(); },
};
describe('#subscribe', () => {
it('throws when subscriptionOpts does not conform to schema', () => {