@updater/test-utils
v0.0.7
Published
Test helpers for services at Updater
Downloads
4
Readme
Services Test Utils
Simple test utilities for services.
Usage
Initialization
test-utils
takes a config object at initialization.
const testUtils = require('@updater/test-utils')({
amqpUrl: 'amqp://localhost'
})
AMQP Wrap
API
{ amqpWrap } = testUtils
const queue = 'queue'
const exchange = 'exchange'
const route = 'route'
amqpWrap(queue, exchange, route, async channel => {
// Some tests that will get cleaned up
})