2 var express = require('..')
3 var request = require('supertest')
5 describe('res', function () {
6 describe('.sendStatus(statusCode)', function () {
7 it('should send the status code and message as body', function (done) {
10 app.use(function(req, res){
16 .expect(201, 'Created', done);
19 it('should work with unknown code', function (done) {
22 app.use(function(req, res){
28 .expect(599, '599', done);