Skip to content
Myr

req.path.js

This file

Path

test/req.path.js

19 lines · 399 bytes · JavaScript

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than 269dc53 point at it.

Invoke router.param() only when route matchesDouglas Christopher Wilsonbefore adoption269dc53

lines 1–19why, one step back
1
2var express = require('../')3 , request = require('supertest');45describe('req', function(){6 describe('.path', function(){7 it('should return the parsed pathname', function(done){8 var app = express();910 app.use(function(req, res){11 res.end(req.path);12 });1314 request(app)15 .get('/login?redirect=/post/1/comments')16 .expect('/login', done);17 })18 })19})