Skip to content
Myr

Added failing req.accepts() 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 6624f6b · Browse files · 1 file+1 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+1 added−0 removed

  • tests:+1 added−0 removed

1 file+1 added−0 removed

modified:test/request.test.js+1 added
57 unmodified lines
58 });59 60 app.get('/', function(req, res){61 req.accepts('html').should.be.true;62 req.accepts('.html').should.be.true;63 req.accepts('text/html').should.be.true;64 req.accepts('text/*').should.be.true;65 req.accepts('json').should.be.true;66 req.accepts('application/json').should.be.true;
205 unmodified lines