req.path.js
This file
Path
test/req.path.js
19 lines · 404 bytes · JavaScript
Last changed by
updated tests to use "supertest"TJ Holowaychukbefore adoption0f5560e
History of this fileTake it
The walk stopped after 200 commits: lines older than 2c14d0c point at it.
clean up weird whitespace in error-pages acceptance testsTJ Holowaychukbefore adoption2c14d0c
lines 1–15why, one step back12var express = require('../')3 , request = require('./support/http');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')updated tests to use "supertest"TJ Holowaychukbefore adoption0f5560e
line 16why, one step back16 .expect('/login', done);clean up weird whitespace in error-pages acceptance testsTJ Holowaychukbefore adoption2c14d0c
lines 17–19why, one step back17 })18 })19})