From 20c18ed90400739f976e7b1206f60536d46e9f9b Mon Sep 17 00:00:00 2001 From: Felix Zapata Date: Thu, 9 Aug 2018 21:54:23 +0200 Subject: [PATCH] fix(index.js): return promise with axeBuilder --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 49c6250..fd6b5e9 100644 --- a/index.js +++ b/index.js @@ -127,7 +127,6 @@ module.exports = function (customOptions) { var urls = flatten(findGlobPatterns(options.urls)); - if (options.verbose) { console.log(chalk.yellow('Start reading the urls')); console.log(chalk.yellow('======================')); @@ -159,7 +158,7 @@ module.exports = function (customOptions) { axeBuilder.options(options.a11yCheckOptions); } - axeBuilder.analyze(function (results) { + return axeBuilder.analyze(function (results) { results.url = url; results.timestamp = new Date().getTime(); results.time = results.timestamp - startTimestamp;