2 var express = require('../')
3 , request = require('supertest');
5 describe('app', function(){
6 describe('.request', function(){
7 it('should extend the request prototype', function(done){
10 app.request.querystring = function(){
11 return require('url').parse(this.url).query;
14 app.use(function(req, res){
15 res.end(req.querystring());
19 .get('/foo?name=tobi')
20 .expect('name=tobi', done);