@wordpress/jest-puppeteer-axe
Advanced tools
Comparing version 3.1.1-next.5df0cd52b7.0 to 3.1.1
@@ -20,8 +20,9 @@ /** | ||
function formatViolations(violations) { | ||
return violations.map(({ | ||
help, | ||
helpUrl, | ||
id, | ||
nodes | ||
}) => { | ||
return violations.map(_ref => { | ||
let { | ||
help, | ||
helpUrl, | ||
id, | ||
nodes | ||
} = _ref; | ||
let output = `Rule: "${id}" (${help})\n` + `Help: ${helpUrl}\n` + 'Affected Nodes:\n'; | ||
@@ -80,9 +81,10 @@ nodes.forEach(node => { | ||
async function toPassAxeTests(page, { | ||
include, | ||
exclude, | ||
disabledRules, | ||
options, | ||
config | ||
} = {}) { | ||
async function toPassAxeTests(page) { | ||
let { | ||
include, | ||
exclude, | ||
disabledRules, | ||
options, | ||
config | ||
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
const axe = new AxePuppeteer(page); | ||
@@ -89,0 +91,0 @@ |
@@ -25,8 +25,9 @@ "use strict"; | ||
function formatViolations(violations) { | ||
return violations.map(({ | ||
help, | ||
helpUrl, | ||
id, | ||
nodes | ||
}) => { | ||
return violations.map(_ref => { | ||
let { | ||
help, | ||
helpUrl, | ||
id, | ||
nodes | ||
} = _ref; | ||
let output = `Rule: "${id}" (${help})\n` + `Help: ${helpUrl}\n` + 'Affected Nodes:\n'; | ||
@@ -85,9 +86,10 @@ nodes.forEach(node => { | ||
async function toPassAxeTests(page, { | ||
include, | ||
exclude, | ||
disabledRules, | ||
options, | ||
config | ||
} = {}) { | ||
async function toPassAxeTests(page) { | ||
let { | ||
include, | ||
exclude, | ||
disabledRules, | ||
options, | ||
config | ||
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
const axe = new _puppeteer.default(page); | ||
@@ -94,0 +96,0 @@ |
{ | ||
"name": "@wordpress/jest-puppeteer-axe", | ||
"version": "3.1.1-next.5df0cd52b7.0", | ||
"version": "3.1.1", | ||
"description": "Axe API integration with Jest and Puppeteer.", | ||
@@ -35,3 +35,3 @@ "author": "The WordPress Contributors", | ||
"@axe-core/puppeteer": "^4.0.0", | ||
"@babel/runtime": "^7.13.10" | ||
"@babel/runtime": "^7.16.0" | ||
}, | ||
@@ -45,3 +45,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "558d577d12bec15f05e694eb49a094836d885cca" | ||
"gitHead": "9a1dd3474d937468e4cf9caf9886ad61ef0a8f50" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
63036
226
0
Updated@babel/runtime@^7.16.0