regression.js
This file
Path
test/regression.js
19 lines · 369 bytes · JavaScript
Last changed by
updated tests to use "supertest"TJ Holowaychukbefore adoption0f5560e
History of this fileTake it
The walk stopped after 200 commits: lines older than 7294806 point at it.
try npm publishConfigTJ Holowaychukbefore adoption7294806
lines 1–15why, 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('/')updated tests to use "supertest"TJ Holowaychukbefore adoption0f5560e
lines 16–17why, one step back16 .expect('yay')17 .expect(200, done);try npm publishConfigTJ Holowaychukbefore adoption7294806
lines 18–19why, one step back18 })19})