hammock-request

2.1.0 • Public • Published

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

/hammock-request/

    Package Sidebar

    Install

    npm i hammock-request

    Weekly Downloads

    6

    Version

    2.1.0

    License

    none

    Last publish

    Collaborators

    • raynos