docs: add note about security report location
[express.git] / test / req.path.js
blob6ad4009c7d5db3844639a257e6d954ce4dbd5123
2 var express = require('../')
3   , request = require('supertest');
5 describe('req', function(){
6   describe('.path', function(){
7     it('should return the parsed pathname', function(done){
8       var app = express();
10       app.use(function(req, res){
11         res.end(req.path);
12       });
14       request(app)
15       .get('/login?redirect=/post/1/comments')
16       .expect('/login', done);
17     })
18   })