Skip to content

Commit

Permalink
more checks for version number in error page
Browse files Browse the repository at this point in the history
  • Loading branch information
sintaxi committed Dec 18, 2013
1 parent 3492ba7 commit 0d04e36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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()
})
Expand Down
1 change: 1 addition & 0 deletions test/invalid.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
})
Expand Down

0 comments on commit 0d04e36

Please sign in to comment.