From fbfe8b0179abb1141ce6bd23bdc3fa1e9b94a86e Mon Sep 17 00:00:00 2001 From: Kevin Brewer Date: Fri, 23 Oct 2020 16:32:52 -0700 Subject: [PATCH] fix: don't override custom options (#7) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index b871095..3404545 100644 --- a/index.js +++ b/index.js @@ -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 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 });