regression.js
This file
Path
test/regression.js
22 lines · 443 bytes · JavaScript
Last changed by
Merge branch 'master' of github.com:visionmedia/expressTj Holowaychukbefore adoption85ea5f6
History of this fileTake it
Merge branch 'master' of github.com:visionmedia/expressTj Holowaychukbefore adoption85ea5f6
lines 1–22why, one step back12var express = require('../')3 , request = require('./support/http');45describe('throw after .end()', function(){6 it('should fail gracefully', function(done){7 var app = express();89 app.get('/', function(req, res){10 res.end('yay');11 throw new Error('boom');12 });1314 request(app)15 .get('/')16 .end(function(res){17 res.should.have.status(200);18 res.body.should.equal('yay');19 done();20 });21 })22})