From be5c0cccb41c55056bf01e0a781f57745da7229c Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Tue, 3 Jul 2012 19:30:28 -0700 Subject: [PATCH] add .mime test --- test/send.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/send.js b/test/send.js index 891e5fd..4416824 100644 --- a/test/send.js +++ b/test/send.js @@ -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) { @@ -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)