UNPKG

bfx-api-node-plugin-wd

Version:

Connection watchdog plugin for the official Bitfinex Node API

19 lines (15 loc) 290 B
/* eslint-env mocha */ 'use strict' const onSelfClose = require('../../lib/self/close') describe('self:close', () => { const handler = onSelfClose() it('closes the socket', (done) => { handler({ state: { ws: { close: done } } }) }) })