Skip to content

Commit

Permalink
Added res.charset test
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Nov 10, 2011
1 parent 7356a90 commit 17d614d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion test/node/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,18 @@ describe('request', function(){
});
})
})


describe('res.charset', function(){
it('should be set when present', function(done){
request
.get('http://localhost:3000/login')
.end(function(res){
res.charset.should.equal('utf-8');
done();
});
})
})

describe('res.statusType', function(){
it('should provide the first digit', function(done){
request
Expand Down

0 comments on commit 17d614d

Please sign in to comment.