From 0d04e3683ed36c438f8ab585aac874eb3786f89b Mon Sep 17 00:00:00 2001 From: Brock Whitten Date: Wed, 18 Dec 2013 14:55:41 -0800 Subject: [PATCH] more checks for version number in error page --- test/errors.js | 4 +++- test/invalid.js | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/test/errors.js b/test/errors.js index be772bfd..df7484e4 100644 --- a/test/errors.js +++ b/test/errors.js @@ -50,7 +50,7 @@ describe("errors", function(){ it("should get error message for invalid _data.json", function(done){ request('http://localhost:'+ port +'/', function (e, r, b) { r.statusCode.should.eql(500) - //b.should.include(harp.pkg.version) + b.should.include(harp.pkg.version) harp.compile(projectPath, outputPath, function(error){ should.exist(error) error.should.have.property("source") @@ -79,6 +79,7 @@ describe("errors", function(){ it("should get error message for invalid _data.json", function(done){ request('http://localhost:'+ port +'/', function (e, r, b) { r.statusCode.should.eql(500) + b.should.include(harp.pkg.version) harp.compile(projectPath, outputPath, function(error){ should.exist(error) error.should.have.property("source") @@ -107,6 +108,7 @@ describe("errors", function(){ it("should return proper mime type on 404 page", function(done){ request('http://localhost:'+ port +'/some/missing/path.css', function (e, r, b) { r.statusCode.should.eql(404) + b.should.include(harp.pkg.version) r.headers.should.have.property("content-type", "text/html; charset=UTF-8") done() }) diff --git a/test/invalid.js b/test/invalid.js index 02492213..b135fe37 100644 --- a/test/invalid.js +++ b/test/invalid.js @@ -16,6 +16,7 @@ describe("headers", function(){ it("should return correct mime type for css files", function(done){ request("http://localhost:" + port + "/invalid-jade.html", function(e,r,b){ r.statusCode.should.eql(500) + b.should.include(harp.pkg.version) done() }) })