Skip to content

Commit

Permalink
fix(index.js): remove deprecated warning (#22)
Browse files Browse the repository at this point in the history
* Adding axeBuilder error handling

* Adding axeBuilder error handling
  • Loading branch information
jpgcode authored and felixzapata committed Mar 15, 2019
1 parent ae9cabe commit 23a4bcc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,10 @@ module.exports = function (customOptions) {
axeBuilder.options(options.a11yCheckOptions);
}

return axeBuilder.analyze(function (results) {
return axeBuilder.analyze(function (err, results) {
if (err) {
console.log(err);
}
results.url = url;
results.timestamp = new Date().getTime();
results.time = results.timestamp - startTimestamp;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
],
"dependencies": {
"axe-core": "^3.0.1",
"axe-webdriverjs": "^2.0.0",
"axe-webdriverjs": "^2.2.0",
"chalk": "^1.1.3",
"chromedriver": "2.41.0",
"file-url": "^1.1.0",
Expand Down

0 comments on commit 23a4bcc

Please sign in to comment.