Skip to content
Myr

Added failing middleware precedence tests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent f53686a · Browse files · 1 file+10 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+10 added−0 removed

  • tests:+10 added−0 removed

1 file+10 added−0 removed

modified:test/express.test.js+10 added
16 unmodified lines
17 'test connect middleware autoloaders': function(){18 express.errorHandler.should.equal(connect.errorHandler);19 },20 21 'test createServer() precedence': function(){22 var app = express.createServer(function(req, res){23 res.send(req.query.bar);24 });25 26 assert.response(app,27 { url: '/foo?bar=baz' },28 { body: 'baz' });29 },30 31 'test basic server': function(){32 var server = express.createServer();3334 server.get('/', function(req, res){
485 unmodified lines