req.path.js
This file
Path
test/req.path.js
19 lines · 399 bytes · JavaScript
Last changed by
remove unnecessary test/support/httpJonathan Ongbefore adoption643397e
History of this fileTake it
The walk stopped after 200 commits: lines older than 29fe5ea point at it.
Merge pull request #1657 from ralphtheninja/masterTJ Holowaychukbefore adoption29fe5ea
lines 1–2why, one step back12var express = require('../')remove unnecessary test/support/httpJonathan Ongbefore adoption643397e
line 3why, one step back3 , request = require('supertest');Merge pull request #1657 from ralphtheninja/masterTJ Holowaychukbefore adoption29fe5ea
lines 4–19why, one step back45describe('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})