UNPKG

micro-toolkit-event-bus-zeromq

Version:

The ØMQ implementation of event BUS based on ØMQ Clone Pattern and Clustered Hashmap Protocol.

20 lines (18 loc) 379 B
var sinon = require('sinon') function getSocketStub() { return { connect: sinon.spy(), disconnect: sinon.spy(), subscribe: sinon.spy(), on: sinon.spy(), unref: sinon.spy(), ref: sinon.spy(), close: sinon.spy(), send: sinon.spy(), bindSync: sinon.spy(), setsockopt: sinon.spy(), } } module.exports = { getSocketStub: getSocketStub }