Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oliverjash/any-http-integration-test-helpers
https://github.com/oliverjash/any-http-integration-test-helpers
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/oliverjash/any-http-integration-test-helpers
- Owner: OliverJAsh
- Created: 2014-11-13T17:37:42.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-13T17:37:47.000Z (almost 10 years ago)
- Last Synced: 2024-04-14T02:21:03.707Z (7 months ago)
- Language: JavaScript
- Size: 97.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AnyHTTP Integration Test Helpers
Example usage:
``` js
import { createStubServer, closeStubServer } from 'any-http-integration-test-helpers';describe('Http integration', () => {
afterEach(closeStubServer);it('should make the request and resolve if the response has a good status code', () =>
createStubServer({ status: 200, headers: {}, body: 'foo' })
.then(() => {
// …
}));
});
```