testaro 12.7.1 → 12.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tests/htmlcs.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "12.7.1",
3
+ "version": "12.7.2",
4
4
  "description": "Automation of accessibility testing",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/tests/htmlcs.js CHANGED
@@ -26,7 +26,9 @@ exports.reporter = async (page, rules) => {
26
26
  // If only some rules are to be employed:
27
27
  if (rules && Array.isArray(rules) && rules.length) {
28
28
  // Redefine WCAG 2 AAA as including only them.
29
- window.HTMLCS_WCAG2AAA ??= {};
29
+ if (! window.HTMLCS_WCAG2AAA) {
30
+ window.HTMLCS_WCAG2AAA = {};
31
+ }
30
32
  window.HTMLCS_WCAG2AAA.sniffs = rules;
31
33
  }
32
34
  // Run the tests.