2 var app = require('../../examples/downloads')
3 , request = require('supertest');
5 describe('downloads', function(){
6 describe('GET /', function(){
7 it('should have a link to amazing.txt', function(done){
10 .expect(/href="\/files\/amazing.txt"/, done)
14 describe('GET /files/amazing.txt', function(){
15 it('should have a download header', function(done){
17 .get('/files/amazing.txt')
18 .expect('Content-Disposition', 'attachment; filename="amazing.txt"')
23 describe('GET /files/missing.txt', function(){
24 it('should respond with 404', function(done){
26 .get('/files/missing.txt')