Skip to content
Myr

Fixed tests due to params.splat removal

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 0111582 · Browse files · 2 files+2 added−2 removed
This commit

State

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

Diff stats

2 files+2 added−2 removed

  • tests:+2 added−2 removed
  • other:+0 added−0 removed

2 files+2 added−2 removed

modified:support/connectnot shown

Its text is not shown, modified.

modified:test/response.test.js+2 added-2 removed
78 unmodified lines
79 res.send('some stylezzz');80 });8182 app.get('/*', function(req, res, params){83 res.attachment(params.splat[0]);83 res.attachment(params[0]);84 res.send('whatever');85 });86 87 assert.response(app,
86 unmodified lines
174 'test #sendfile()': function(assert){175 var app = express.createServer();176 177 app.get('/*', function(req, res, params){178 var file = params.splat[0];178 var file = params[0];179 res.sendfile(__dirname + '/fixtures/' + file);180 });181 182 assert.response(app,
39 unmodified lines