invalid.js 611 B

123456789101112131415161718192021222324
  1. var should = require("should")
  2. var request = require('request')
  3. var path = require('path')
  4. var harp = require('../')
  5. describe("headers", function(){
  6. var projectPath = path.join(__dirname, "apps/err-invalid-source-files")
  7. var port = 8801
  8. before(function(done){
  9. harp.server(projectPath, { port: port }, done)
  10. })
  11. it("should return correct mime type for css files", function(done){
  12. request("http://localhost:" + port + "/invalid-jade.html", function(e,r,b){
  13. r.statusCode.should.eql(500)
  14. b.should.include(harp.pkg.version)
  15. done()
  16. })
  17. })
  18. })