diff --git a/tests/index.js b/tests/index.js index 870b134..4fc27c7 100644 --- a/tests/index.js +++ b/tests/index.js @@ -1,19 +1,25 @@ -'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 = { - configFile: 'greenlock-manager-test.delete-me.json' + configFile: "greenlock-manager-test.delete-me.json" }; Tester.test(Manager, config) - .then(function() { - console.log('PASS: Known-good test module passes'); - }) - .catch(function(err) { - console.error('Oops, you broke it. Here are the details:'); - console.error(err.stack); - console.error(); - console.error("That's all I know."); - }); + .then(function(features) { + 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) { + console.error("Oops, you broke it. Here are the details:"); + console.error(err.stack); + console.error(); + console.error("That's all I know."); + });