Skip to content
Myr

Fixed res.download() test

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 5dbd1a6 · Browse files · 1 file+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

1 file+2 added−2 removed

  • tests:+2 added−2 removed

1 file+2 added−2 removed

modified:test/response.test.js+2 added-2 removed
198 unmodified lines
199 app.get('/json', function(req, res, next){200 res.download(__dirname + '/fixtures/user.json', 'account.json');201 });202203 app.get('/:file', function(req, res, next){204 res.download(__dirname + '/fixtures/' + req.params.file);203 app.get('/*', function(req, res, next){204 res.download(__dirname + '/fixtures/' + req.params[0]);205 });206 207 assert.response(app,208 { url: '/user.json' },
13 unmodified lines