Skip to content

Commit

Permalink
Merge pull request expressjs#1710 from hacksparrow/master
Browse files Browse the repository at this point in the history
Fixed test cases for res.format
  • Loading branch information
tj committed Aug 9, 2013
2 parents 5aa9670 + a38bdf6 commit d6ecf78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/res.format.js
Expand Up @@ -53,7 +53,7 @@ app3.use(function(req, res, next){
})
});

describe('req', function(){
describe('res', function(){
describe('.format(obj)', function(){
describe('with canonicalized mime types', function(){
test(app);
Expand All @@ -79,14 +79,14 @@ function test(app) {
request(app)
.get('/')
.set('Accept', 'text/html; q=.5, application/json, */*; q=.1')
.expect('{"message":"hey"}', done);
.expect({"message":"hey"}, done);
})

it('should allow wildcard type/subtypes', function(done){
request(app)
.get('/')
.set('Accept', 'text/html; q=.5, application/*, */*; q=.1')
.expect('{"message":"hey"}', done);
.expect({"message":"hey"}, done);
})

it('should default the Content-Type', function(done){
Expand Down

0 comments on commit d6ecf78

Please sign in to comment.