Skip to content
Myr

req.path.js

This file

Path

test/req.path.js

20 lines · 412 bytes · JavaScript

Last changed by

Merge tag '4.17.3'Douglas Christopher Wilsonbefore adoption318fd4b

History of this file

Take it

The walk stopped after 200 commits: lines older than 2a0c35a point at it.

Merge tag '4.17.3'Douglas Christopher Wilsonbefore adoption318fd4b

line 1why, one step back
1'use strict'

Invoke callback for sendfile when client abortsDouglas Christopher Wilsonbefore adoption2a0c35a

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