regression.js
This file
Path
test/regression.js
19 lines · 364 bytes · JavaScript
Last changed by
remove unnecessary test/support/httpJonathan Ongbefore adoption643397e
History of this fileTake it
The walk stopped after 200 commits: lines older than a02dd20 point at it.
update send to 0.2.0Roman Shtylmanbefore adoptiona02dd20
lines 1–2why, one step back12var express = require('../')remove unnecessary test/support/httpJonathan Ongbefore adoption643397e
line 3why, one step back3 , request = require('supertest');update send to 0.2.0Roman Shtylmanbefore adoptiona02dd20
lines 4–19why, one step back45describe('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('/')16 .expect('yay')17 .expect(200, done);18 })19})