Ensure the mail status check api has consitent toplevel properties

This commit is contained in:
Johannes Zellner
2018-01-23 12:00:24 +01:00
parent e6f4a9e4a8
commit 681813eddd

View File

@@ -374,7 +374,12 @@ function getStatus(domain, callback) {
assert.strictEqual(typeof domain, 'string');
assert.strictEqual(typeof callback, 'function');
var results = {};
// ensure we always have a valid toplevel properties for the api
var results = {
dns: {},
rbl: {},
relay: {}
};
function recordResult(what, func) {
return function (callback) {