1.0.4 • Published 8 years ago

restify-test-fixture v1.0.4

Weekly downloads
4
License
ISC
Repository
github
Last release
8 years ago

restify-test-fixture

A simple startup and teardown for tests using restify servers

Best used with with-fixtures

Use

const restifyFixture = require('restify-test-fixture');
const withFixtures = require('with-fixtures');

doSomeTest(async () => {
	const fixture = restifyFixture(server => {
		server.post('/path', handler);
	})
	await withFixtures([
		fixture
	], () => {
		const url = (await fixture).url
		// make request to url here
	});
})
1.0.4

8 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago