regression.js
This file
Path
test/regression.js
20 lines · 377 bytes · JavaScript
Last changed by
Merge tag '4.17.3'Douglas Christopher Wilsonbefore adoption318fd4b
History of this fileTake it
The walk stopped after 200 commits: lines older than 2a0c35a point at it.
Merge tag '4.17.3'Douglas Christopher Wilsonbefore adoption318fd4b
line 1why, one step back1'use strict'Invoke callback for sendfile when client abortsDouglas Christopher Wilsonbefore adoption2a0c35a
lines 2–20why, one step back23var express = require('../')4 , request = require('supertest');56describe('throw after .end()', function(){7 it('should fail gracefully', function(done){8 var app = express();910 app.get('/', function(req, res){11 res.end('yay');12 throw new Error('boom');13 });1415 request(app)16 .get('/')17 .expect('yay')18 .expect(200, done);19 })20})