<commit_before>
var express = require('../')
  , request = require('./support/http');

describe('res', function(){
  describe('.send(code)', function(){
    it('should set .statusCode', function(done){
      var app = express();

      app.use(function(req, res){
        res.send(201);
      });

      request(app)
      .get('/')
      .end(function(res){
        res.body.should.equal('Created');
        res.statusCode.should.equal(201);
        done();
      })
    })
  })
})<commit_msg>Added res.send(code, body) test<commit_after>
var express = require('../')
  , request = require('./support/http');

describe('res', function(){
  describe('.send(code)', function(){
    it('should set .statusCode', function(done){
      var app = express();

      app.use(function(req, res){
        res.send(201).should.equal(res);
      });

      request(app)
      .get('/')
      .end(function(res){
        res.body.should.equal('Created');
        res.statusCode.should.equal(201);
        done();
      })
    })
  })
  
  describe('.send(code, body)', function(){
    it('should set .statusCode and body', function(done){
      var app = express();

      app.use(function(req, res){
        res.send(201, 'Created :)');
      });

      request(app)
      .get('/')
      .end(function(res){
        res.body.should.equal('Created :)');
        res.statusCode.should.equal(201);
        done();
      })
    })
  })
})
{'fraction_non_alphanumeric': 0.2029494382022472, 'fraction_numerical': 0.012640449438202247, 'mean_word_length': 2.3294392523364484, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3576081', 'n_tokens_mistral': 460, 'n_tokens_neox': 439, 'n_words': 77}