Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

hammock-request

Raynos212.1.0

Make requests use the hammock HTTP mocks

readme

hammock-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

MIT Licensed