diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2017-11-15 11:21:59 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2017-11-15 11:37:20 +0800 |
commit | a2b89331296ac4f9bb12bafc728602f4a987fef1 (patch) | |
tree | 93867211fc416aef140f7fe8041a2e25b38b7769 /packages/connect/test | |
parent | c315ca6c0c95e61e10f52919cb0946fd980bca25 (diff) | |
download | dexon-sol-tools-a2b89331296ac4f9bb12bafc728602f4a987fef1.tar dexon-sol-tools-a2b89331296ac4f9bb12bafc728602f4a987fef1.tar.gz dexon-sol-tools-a2b89331296ac4f9bb12bafc728602f4a987fef1.tar.bz2 dexon-sol-tools-a2b89331296ac4f9bb12bafc728602f4a987fef1.tar.lz dexon-sol-tools-a2b89331296ac4f9bb12bafc728602f4a987fef1.tar.xz dexon-sol-tools-a2b89331296ac4f9bb12bafc728602f4a987fef1.tar.zst dexon-sol-tools-a2b89331296ac4f9bb12bafc728602f4a987fef1.zip |
Add lodash noop to emptyOrderbookChannelHandler
Diffstat (limited to 'packages/connect/test')
-rw-r--r-- | packages/connect/test/ws_orderbook_channel_test.ts | 9 |
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', () => { |