Skip to content
Myr

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 file

Take it

The walk stopped after 200 commits: lines older than 2e68ddb point at it.

expose connect.middleware using Object.getOwnPropertyDescriptor()Jonathan Ongbefore adoption2e68ddb

lines 1–2why, one step back
1
2var express = require('../')

remove unnecessary test/support/httpJonathan Ongbefore adoption643397e

line 3why, one step back
3 , request = require('supertest');

expose connect.middleware using Object.getOwnPropertyDescriptor()Jonathan Ongbefore adoption2e68ddb

lines 4–19why, one step back
4
5describe('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})