regression.js
This file
Path
test/regression.js
20 lines · 377 bytes · JavaScript
Last changed by
Not known.
History of this fileTake it
123456789101112131415161718192021'use strict'
var express = require('../') , request = require('supertest');
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('/') .expect('yay') .expect(200, done); })})