rabbitmq-eventemitter-mock
Mock for rabbitmq-eventemitter.
npm install rabbitmq-eventemitter-mock
Usage
The module supports the same interface as rabbitmq-eventemitter
. It has an additional connection
property associated with each queue instance, which represents the remote subscriber or publisher.
var rabbitmq = ; var queue = ; queue; queueconnection;
The provided function to queue.connection.push
is called after all listeners registered with queue.pull
have called the callback.
The module can be used together with mockery.
var mockery = ; mockery;mockery;