fix(deps)!: mime-types@^3.0.0 (#5882)
[express.git] / test / req.path.js
blob3ff6177c74e50e22e397350408ae7f2011b7e43d
1 'use strict'
3 var express = require('../')
4 , request = require('supertest');
6 describe('req', function(){
7 describe('.path', function(){
8 it('should return the parsed pathname', function(done){
9 var app = express();
11 app.use(function(req, res){
12 res.end(req.path);
13 });
15 request(app)
16 .get('/login?redirect=/post/1/comments')
17 .expect('/login', done);