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){
10 app.use(function(req, res){
15 .get('/login?redirect=/post/1/comments')
16 .expect('/login', done);