Skip to content
Myr

Added more req.accepts() tests

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 f32279d · Browse files · 1 file+2 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+2 added−0 removed

  • tests:+2 added−0 removed

1 file+2 added−0 removed

modified:test/request.test.js+2 added
49 unmodified lines
50 var app = express.createServer();51 52 app.get('/all', function(req, res){53 req.accepts('html').should.be.true;54 req.accepts('.html').should.be.true;55 req.accepts('json').should.be.true;56 req.accepts('.json').should.be.true;57 res.send('ok');58 });59 60 app.get('/', function(req, res){
210 unmodified lines