Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fizker/node-http-test-helper
A helper for wrapping calls to HTTP APIs during Node/REST API tests.
https://github.com/fizker/node-http-test-helper
Last synced: 20 days ago
JSON representation
A helper for wrapping calls to HTTP APIs during Node/REST API tests.
- Host: GitHub
- URL: https://github.com/fizker/node-http-test-helper
- Owner: fizker
- Created: 2013-08-11T11:35:39.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-08-04T16:11:12.000Z (over 10 years ago)
- Last Synced: 2024-10-14T02:29:15.257Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 184 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
http-test-helpers
=================A collection of helpers that I usually need when doing Node/REST API tests.
Note that this is still very much a work-in-progress, and there are huge holes
in the current feature-set.Features
--------Wrap request with a few convenience methods:
- It supports both promises and regular callbacks
-- Giving a callback makes it return the underlying `request` object, which is
a read/write stream. This is useful for piping files.
- auto-setting basic url
- automatically translating certain types from the server (at least application/json)