res.status.js
This file
Path
test/res.status.js
20 lines · 411 bytes · JavaScript
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than 6bc7574 point at it.
docs: typo fixesDouglas Christopher Wilsonbefore adoption6bc7574
lines 1–20why, one step back12var express = require('../')3 , request = require('supertest');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})