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
1234567891011121314151617181920212223
var express = require('../') , request = require('./support/http');
describe('throw after .end()', function(){ it('should fail gracefully', function(done){ var app = express();
app.get('/', function(req, res){ res.end('yay'); throw new Error('boom'); });
request(app) .get('/') .end(function(res){ res.should.have.status(200); res.body.should.equal('yay'); done(); }); })})