Skip to content
Myr

Added failing test

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 656e67e · Browse files · 1 file+14 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+14 added−0 removed

  • tests:+14 added−0 removed

1 file+14 added−0 removed

modified:test/express.test.js+14 added
199 unmodified lines
200 var app = express.createServer();201 var ret = app.disable('some feature');202 assert.equal(app, ret, 'Test #disable() returns server for chaining');203 assert.strictEqual(false, app.set('some feature'));204 },205 206 'test middleware precedence': function(assert){207 var app = express.createServer();208 209 app.use(connect.bodyDecoder());210 211 app.post('/', function(req, res){212 res.send(JSON.stringify(req.body || ''));213 });214 215 assert.response(app,216 { url: '/', method: 'POST', data: 'name=tj' },217 { body: '{"name":"tj"}' });218 }219};