Skip to content

Commit

Permalink
fix: don't override custom options (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
appleJax authored Oct 23, 2020
1 parent aeb840f commit fbfe8b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const axeCheck = (t, context, options = { rules: {} }) => {
try {
// skipping the "document-title" rule as there is an issue with testcafe
// being unable to find the title of a page inside the <head> tag.
options = options["rules"]['document-title'] = {'enabled': false};
options.rules["document-title"] = { enabled: false };
return runAxe.with({ boundTestRun: t })(context, options);
} catch (error) {
return Promise.resolve({ error });
Expand Down

0 comments on commit fbfe8b0

Please sign in to comment.