testaro 32.1.0 → 32.2.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "32.1.0",
3
+ "version": "32.2.0",
4
4
  "description": "Run 960 web accessibility tests from 9 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -245,14 +245,18 @@ exports.reporter = async (page, withItems) => {
245
245
  h5: [3, 'Level-5 headings', 'H5'],
246
246
  h6: [3, 'Level-6 headings', 'H6'],
247
247
  };
248
+ // For each eligible element type:
248
249
  Object.keys(elementData).forEach(elementName => {
250
+ // If it has more than 1 style:
249
251
  const elementTotal = data.totals[elementName];
250
252
  if (elementTotal && elementTotal.subtotals) {
251
253
  const currentData = elementData[elementName];
252
254
  const severity = currentData[0];
253
255
  const elementSubtotals = elementTotal.subtotals;
256
+ // Treat the count of its styles in excess of 1 as the instance count for that element type.
254
257
  const extraCount = elementSubtotals.length - 1;
255
258
  totals[severity] += extraCount;
259
+ // Add a summary standard instance for that element type.
256
260
  standardInstances.push({
257
261
  ruleID: 'styleDiff',
258
262
  what: `${currentData[1]} have ${elementSubtotals.length} different styles`,
package/tests/ibm.js CHANGED
@@ -144,9 +144,9 @@ const doTest = async (content, withItems, timeLimit, rules) => {
144
144
  const actReport = runReport && runReport.report;
145
145
  // Delete any report files.
146
146
  try {
147
- const reportNames = await fs.readdir('results');
147
+ const reportNames = await fs.readdir('ibmOutput');
148
148
  for (const reportName of reportNames) {
149
- await fs.rm(`results/${reportName}`);
149
+ await fs.rm(`ibmOutput/${reportName}`);
150
150
  }
151
151
  }
152
152
  catch(error) {