1.0.4 • Published 7 years ago

restify-test-fixture v1.0.4

Weekly downloads
4
License
ISC
Repository
github
Last release
7 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

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago