1.3.1 • Published 6 years ago

bridge-amqplib-mocks v1.3.1

Weekly downloads
5
License
-
Repository
github
Last release
6 years ago

amqplib-mocks

NPM Version Build Coverage

A simple mocking framework for amqplib. Currently supports the following:

  • Multiple connections
  • Routing messages based on routingKey
  • Retrieving any published messages on a channel
  • Asserting topology
  • The server remotely closing a channel

Usage

const amqplib = require( "amqplib-mocks" );
const proxyquire = require( "proxyquire" );

const server = proxyquire( "./app", { amqplib } );
server.listen();