Permalink
Browse files

add another content-type test

  • Loading branch information...
1 parent 09a1abc commit 02d28267121b8fdc78b55faaf7eeec3d318bc419 @tj tj committed Jul 5, 2012
Showing with 7 additions and 1 deletion.
  1. +1 −0 test/fixtures/tobi.html
  2. +6 −1 test/send.js
View
@@ -0,0 +1 @@
+<p>tobi</p>
View
@@ -127,7 +127,12 @@ describe('send(file).pipe(res)', function(){
request(app)
.get('/name.txt')
.expect('Content-Type', 'text/plain; charset=UTF-8')
- .end(done);
+ .end(function(){
+ request(app)
+ .get('/tobi.html')
+ .expect('Content-Type', 'text/html; charset=UTF-8')
+ .end(done);
+ });
})
describe('when no "directory" listeners are present', function(){

0 comments on commit 02d2826

Please sign in to comment.