v3.1.0: update for latest tests (and sites array)

This commit is contained in:
AJ ONeal 2019-11-30 12:52:33 -07:00
parent 6a6c9cc88e
commit 0ebb53f563
1 changed files with 19 additions and 13 deletions

View File

@ -1,18 +1,24 @@
'use strict'; "use strict";
var Tester = require('greenlock-manager-test'); var Tester = require("greenlock-manager-test");
var Manager = require('../'); var Manager = require("../manager.js");
var config = { var config = {
configFile: 'greenlock-manager-test.delete-me.json' configFile: "greenlock-manager-test.delete-me.json"
}; };
Tester.test(Manager, config) Tester.test(Manager, config)
.then(function() { .then(function(features) {
console.log('PASS: Known-good test module passes'); console.info("PASS");
console.info();
console.info("Optional Feature Support:");
features.forEach(function(feature) {
console.info(feature.supported ? "✓ (YES)" : "✘ (NO) ", feature.description);
});
console.info();
}) })
.catch(function(err) { .catch(function(err) {
console.error('Oops, you broke it. Here are the details:'); console.error("Oops, you broke it. Here are the details:");
console.error(err.stack); console.error(err.stack);
console.error(); console.error();
console.error("That's all I know."); console.error("That's all I know.");