healthchecks
Advanced tools
Comparing version 1.2.4 to 1.2.5
@@ -0,4 +1,9 @@ | ||
## Version 1.2.5 2015-02-11 | ||
CHANGED better styling for elapsed time | ||
## Version 1.2.4 2015-02-11 | ||
ADDED show request time on page | ||
ADDED show request elapsed time | ||
@@ -5,0 +10,0 @@ |
@@ -24,3 +24,3 @@ // Exports an Express middleware factory. | ||
const File = require('fs'); | ||
const Handlerbars = require('handlebars'); | ||
const Handlebars = require('handlebars'); | ||
const ms = require('ms'); | ||
@@ -222,3 +222,4 @@ const request = require('request'); | ||
const template = File.readFileSync(__dirname + '/index.hbs', 'utf-8'); | ||
const render = Handlerbars.compile(template); | ||
Handlebars.registerHelper('ms', ms); | ||
const render = Handlebars.compile(template); | ||
@@ -225,0 +226,0 @@ // Return the Express middleware |
{ | ||
"name": "healthchecks", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "test": "mocha" |
@@ -41,3 +41,3 @@ const Browser = require('zombie'); | ||
browser.assert.elements('.failed li', 1); | ||
browser.assert.text('.failed li:nth-of-type(1)', /http:\/\/localhost:3000\/error => socket hang up \d+ms/); | ||
browser.assert.text('.failed li:nth-of-type(1)', /^http:\/\/localhost:3000\/error => socket hang up \d+ms$/); | ||
browser.assert.elements('.passed li', 3); | ||
@@ -65,3 +65,3 @@ done(); | ||
browser.assert.elements('.failed li', 1); | ||
browser.assert.text('.failed li:nth-of-type(1)', /http:\/\/localhost:3000\/timeout => timeout \d+ms/); | ||
browser.assert.text('.failed li:nth-of-type(1)', /^http:\/\/localhost:3000\/timeout => timeout \d+s$/); | ||
browser.assert.elements('.passed li', 3); | ||
@@ -87,3 +87,3 @@ done(); | ||
browser.assert.elements('.failed li', 1); | ||
browser.assert.text('.failed li:nth-of-type(1)', /http:\/\/localhost:3000\/status => 400 \d+ms/); | ||
browser.assert.text('.failed li:nth-of-type(1)', /^http:\/\/localhost:3000\/status => 400 \d+ms$/); | ||
browser.assert.elements('.passed li', 3); | ||
@@ -109,3 +109,3 @@ done(); | ||
browser.assert.elements('.failed li', 1); | ||
browser.assert.text('.failed li:nth-of-type(1)', /http:\/\/localhost:3000\/expected => body \d+ms/); | ||
browser.assert.text('.failed li:nth-of-type(1)', /^http:\/\/localhost:3000\/expected => body \d+ms$/); | ||
browser.assert.elements('.passed li', 3); | ||
@@ -112,0 +112,0 @@ done(); |
Sorry, the diff of this file is not supported yet
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
31915
595