test-server
Easy testing of a HTTP server
Last updated 14 years ago .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install test-server 
SYNC missed versions from official npm registry.

test-server build status

Easy testing of a HTTP server

Example

var testServer = require("test-server")
    , assert = require("assert")

testServer(function (req, res) {
    res.end("beep")
}, function (request, done) {
    request("/", function (err, res, body) {
        assert.equal(body, "beep")
        done()
    })
})

Installation

npm install test-server

Tests

make test

Contributors

  • Raynos

MIT Licenced

Current Tags

  • 0.2.1                                ...           latest (13 years ago)

6 Versions

  • 0.2.1                                ...           13 years ago
  • 0.1.3                                ...           14 years ago
  • 0.1.2                                ...           14 years ago
  • 0.1.1                                ...           14 years ago
  • 0.1.0                                ...           14 years ago
  • 0.0.1                                ...           14 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (4)
  • testling git://github.com/Raynos/testling#master
  • testem git://github.com/Raynos/testem#master
  • sinon git://github.com/Raynos/Sinon.JS.git
  • tap 0.2.5
Dependents (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE