res.status.js
This file
Path
test/res.status.js
20 lines · 416 bytes · JavaScript
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than 8ac3e80 point at it.
Merge branch 'master' of github.com:visionmedia/expressTJ Holowaychukbefore adoption8ac3e80
lines 1–20why, one step back12var express = require('../')3 , request = require('./support/http');45describe('res', function(){6 describe('.status(code)', function(){7 it('should set the response .statusCode', function(done){8 var app = express();910 app.use(function(req, res){11 res.status(201).end('Created');12 });1314 request(app)15 .get('/')16 .expect('Created')17 .expect(201, done);18 })19 })20})