This is a mocking and expectations library for node-amqp inspired by nock.
On your test, you can setup your mocking object like this:
var amqp = ;var amqpmock = ;var scope =// expect to be acknowledged// expect to be not acknowledged;var connection = amqp;connection;;
Since we depend on node-amqp internals and public API, node-amqp-mock version number is aligned with node-amqp version. A build number is added to specify updates.
For example, node-amqp-mock 0.1.2-3 would be the third revision compatible with node-amqp 0.1.2