btrz-health-check
Advanced tools
Comparing version 2.2.0 to 2.3.0
{ | ||
"name": "btrz-health-check", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "A series of classes that will ping different service types to verify accessibility.", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "NODE_ENV=test BUILD_NUMBER=123456789 node_modules/mocha/bin/mocha --ui bdd -t 5000 --exit", | ||
"test-w": "NODE_ENV=test BUILD_NUMBER=123456789 node_modules/mocha/bin/mocha -w" | ||
"test": "NODE_ENV=test BUILD_NUMBER=123456789 mocha --ui bdd -t 5000 --exit", | ||
"tdd": "NODE_ENV=test BUILD_NUMBER=123456789 mocha -w", | ||
"preversion": "npm test", | ||
"postversion": "git push origin master && git push --tags" | ||
}, | ||
@@ -33,10 +35,10 @@ "repository": { | ||
"devDependencies": { | ||
"chai": "4.2.0", | ||
"mocha": "^7.1.2", | ||
"sinon": "7.4.1" | ||
"chai": "4.3.6", | ||
"mocha": "10.0.0", | ||
"sinon": "14.0.0" | ||
}, | ||
"dependencies": { | ||
"superagent": "5.2.2", | ||
"superagent": "8.0.0", | ||
"git-rev": "^0.2.1" | ||
} | ||
} |
@@ -77,6 +77,3 @@ "use strict"; | ||
logger: { | ||
error: function (name, err) { | ||
expect(name).to.be.eql("Socket"); | ||
expect(err).not.to.be.null; | ||
done(); | ||
error: function () { | ||
} | ||
@@ -86,4 +83,8 @@ } | ||
checker = new SocketHealthChecker(config, options); | ||
checker.checkStatus(); | ||
checker.checkStatus().catch(function (err) { | ||
expect(err.name).to.be.eql("Socket"); | ||
expect(err.status).to.be.eql(500); | ||
done(); | ||
}); | ||
}); | ||
}); |
@@ -62,6 +62,3 @@ "use strict"; | ||
logger: { | ||
error: function (name, err) { | ||
expect(name).to.eql("SQS"); | ||
expect(err).not.to.be.null; | ||
done(); | ||
error: function () { | ||
} | ||
@@ -71,3 +68,7 @@ } | ||
let checker = new SQSHealthChecker(sqs, options); | ||
checker.checkStatus(); | ||
checker.checkStatus().catch((result) => { | ||
expect(result.name).to.be.eql("SQS"); | ||
expect(result.status).to.be.eql(500); | ||
done(); | ||
}); | ||
}); | ||
@@ -74,0 +75,0 @@ |
28918
665
+ Addedasap@2.0.6(transitive)
+ Addeddezalgo@1.0.4(transitive)
+ Addedform-data@4.0.0(transitive)
+ Addedformidable@2.1.2(transitive)
+ Addedhexoid@1.0.0(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedsemver@7.6.2(transitive)
+ Addedsuperagent@8.0.0(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedform-data@3.0.1(transitive)
- Removedformidable@1.2.6(transitive)
- Removedsemver@6.3.1(transitive)
- Removedsuperagent@5.2.2(transitive)
Updatedsuperagent@8.0.0