Skip to content

Commit

Permalink
add content-type mime map test
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Jul 5, 2012
1 parent 3e165f0 commit 09a1abc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/send.js
Expand Up @@ -123,6 +123,13 @@ describe('send(file).pipe(res)', function(){
.end(done);
})

it('should set Content-Type via mime map', function(done){
request(app)
.get('/name.txt')
.expect('Content-Type', 'text/plain; charset=UTF-8')
.end(done);
})

describe('when no "directory" listeners are present', function(){
it('should respond with a redirect', function(done){
var app = http.createServer(function(req, res){
Expand Down

0 comments on commit 09a1abc

Please sign in to comment.