2.1.0 • Published 9 years ago

hammock-request v2.1.0

Weekly downloads
1
License
-
Repository
github
Last release
9 years ago

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