Comparing version 0.0.6 to 0.0.7
@@ -320,2 +320,5 @@ var express = require('express') | ||
} | ||
if (!req.mime) { | ||
req.mime = mime; | ||
} | ||
next(); | ||
@@ -322,0 +325,0 @@ } else { |
{ | ||
"name": "flair-doc", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Swagger-compliant REST API documentation generator", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -614,3 +614,3 @@ var should = require('should') | ||
function(req, res) { | ||
res.send("Yay!"); | ||
res.send("Yay! " + req.mime); | ||
} | ||
@@ -634,4 +634,14 @@ ); | ||
}); | ||
it('should add mime to the request', function(done) { | ||
supertest(app) | ||
.post('/blah') | ||
.set('Content-Type', 'application/vnd.something+json; charset=utf-8') | ||
.expect(200, function(err, res) { | ||
res.text.should.include('application/vnd.something+json'); | ||
done(err); | ||
}); | ||
}); | ||
}); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42652
1213