Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add content-type mime map test

  • Loading branch information...
commit 09a1abc7fe5dccdb8f2685df47ec175d3bb83f15 1 parent 3e165f0
@tj tj authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/send.js
View
7 test/send.js
@@ -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){
Please sign in to comment.
Something went wrong with that request. Please try again.