regression.js
This file
Path
test/regression.js
20 lines · 377 bytes · JavaScript
Last changed by
tests: use strict modeDouglas Christopher Wilsonbefore adoptiona659137
History of this fileTake it
The walk stopped after 200 commits: lines older than 76bf96e point at it.
tests: use strict modeDouglas Christopher Wilsonbefore adoptiona659137
line 1why, one step back1'use strict'deps: finalhandler@1.1.1Douglas Christopher Wilsonbefore adoption76bf96e
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})