Skip to content

Commit

Permalink
fix(index.js): return promise with axeBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
felixzapata committed Aug 9, 2018
1 parent 8217362 commit 20c18ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('======================'));
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 20c18ed

Please sign in to comment.