Skip to content
Myr

app.request.js

This file

Path

test/app.request.js

23 lines · 510 bytes · JavaScript

Last changed by

updated tests to use "supertest"TJ Holowaychukbefore adoption0f5560e

History of this file

Take 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–19why, one step back
1
2var express = require('../')3 , request = require('./support/http');45describe('app', function(){6 describe('.request', function(){7 it('should extend the request prototype', function(done){8 var app = express();910 app.request.querystring = function(){11 return require('url').parse(this.url).query;12 };1314 app.use(function(req, res){15 res.end(req.querystring());16 });1718 request(app)19 .get('/foo?name=tobi')

updated tests to use "supertest"TJ Holowaychukbefore adoption0f5560e

line 20why, one step back
20 .expect('name=tobi', done);

clean up weird whitespace in error-pages acceptance testsTJ Holowaychukbefore adoption2c14d0c

lines 21–23why, one step back
21 })
22 })23})