# restify-test-fixture

> A simple startup and teardown for tests using restify servera

Latest version **1.0.4** (published 2017-05-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install restify-test-fixture
pnpm add restify-test-fixture
yarn add restify-test-fixture
bun add restify-test-fixture
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2017-05-29 |
| First published | 2017-01-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Aria Stewart |
| Maintainers | aredridel |

## Links

- npm: https://www.npmjs.com/package/restify-test-fixture
- Repository: https://github.com/aredridel/restify-test-fixture
- Homepage: https://npmjs.com/package/restify-test-fixture
- Issues: https://github.com/aredridel/restify-test-fixture/issues
- npm.io page: https://npm.io/package/restify-test-fixture

## Dependencies (2)

- [restify](https://npm.io/package/restify.md) ^4.3.0
- [es6-promisify](https://npm.io/package/es6-promisify.md) ^5.0.0

## Recent versions

- 1.0.4 (latest) — 2017-05-29
- 1.0.3 — 2017-01-02
- 1.0.2 — 2017-01-02
- 1.0.1 — 2017-01-01
- 1.0.0 — 2017-01-01

## README

restify-test-fixture
====================

A simple startup and teardown for tests using restify servers

Best used with [`with-fixtures`](https://npmjs.com/package/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
	});
})
```

---
_Source: https://npm.io/package/restify-test-fixture · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
