0.0.7 • Published 5 years ago

@updater/test-utils v0.0.7

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

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
})
0.0.7

5 years ago

0.0.6

6 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago