Skip to content
Myr

test to ensure catch of invalid uri

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 9d7452c · Browse files · 1 file+12 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+12 added−0 removed

  • tests:+12 added−0 removed

1 file+12 added−0 removed

modified:test/express.test.js+12 added
459 unmodified lines
460461 assert.response(app,462 { url: '/another' },463 { body: 'got /another' });464 },465 466 'invalid chars': function(){467 var app = express.createServer();468469 app.get('/:name', function(req, res, next){470 res.send('invalid');471 });472473 assert.response(app,474 { url: '/%a0' },475 { status: 500 });476 }477};