hammock-request
v2.1.0hammock-request
Make requests use the hammock HTTP mocks
Example
var hammockRequest = require('hammock-request');
var myHandler = function (req, resp) {
resp.end(JSON.stringify('hello world'));
}
hammockRequest(myHandler, {
url: '/foo',
json: { 'foo': 'bar' }
})
Docs
// TODO. State what the module does.
Installation
npm install hammock-request
Tests
npm test
Contributors
- Raynos