Skip to content
Myr

Updated connect submodule

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 ab3337d · Browse files · 3 files+21 added−1 removed
This commit

State

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

Diff stats

3 files+21 added−1 removed

  • tests:+16 added−0 removed
  • other:+5 added−1 removed

3 files+21 added−1 removed

modified:lib/express/server.js+5 added-1 removed
337 unmodified lines
338 this.routes[method](path, fn);339 return this;340 };341 return arguments.callee;342})('get')('post')('put')('del');342})('get')('post')('put')('delete');343344// Alias delete as "del"345346Server.prototype.del = Server.prototype.delete;
modified:support/connectnot shown

Its text is not shown, modified.

modified:test/express.test.js+16 added
24 unmodified lines
25 res.writeHead(200, {});26 res.end('updated user ' + req.params.id)27 });2829 server.del('/something', function(req, res){30 res.send('Destroyed');31 });3233 server.delete('/something', function(req, res){34 res.send('Destroyed');35 });3637 assert.response(server,38 { url: '/' },39 { body: 'wahoo' });40 41 assert.response(server,42 { url: '/user/12', method: 'PUT' },43 { body: 'updated user 12' });4445 assert.response(server,46 { url: '/something', method: 'DELETE' },47 { body: 'Destroyed' });4849 assert.response(server,50 { url: '/something/else', method: 'DELETE' },51 { body: 'Destroyed' });52 },53 54 'test constructor middleware': function(assert, beforeExit){55 var calls = [];
336 unmodified lines