Skip to content

Commit

Permalink
add .mime test
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Jul 4, 2012
1 parent 46109e6 commit be5c0cc
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/send.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
var send = require('..')
, http = require('http')
, Stream = require('stream')
, request = require('supertest');
, request = require('supertest')
, assert = require('assert');

// test server

var app = http.createServer(function(req, res){
function error(err) {
Expand All @@ -22,6 +25,12 @@ var app = http.createServer(function(req, res){
.pipe(res);
});

describe('send.mime', function(){
it('should be exposed', function(){
assert(send.mime);
})
})

describe('send(file).pipe(res)', function(){
it('should stream the file contents', function(done){
request(app)
Expand Down

0 comments on commit be5c0cc

Please sign in to comment.