testilo 21.5.1 → 21.5.3

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/merge.js CHANGED
@@ -95,8 +95,8 @@ exports.merge = (script, batch, requester, isolate, standard, observe, timeStamp
95
95
  const creationTime = (new Date()).toISOString().slice(0, 16);
96
96
  // Initialize a target-independent job.
97
97
  const protoJob = JSON.parse(JSON.stringify(script));
98
- // Make the timestamp and a random string the ID of the job.
99
- protoJob.id = `${timeStamp}-${getRandomID(Number.parseInt(randomIDLength, 10))}`;
98
+ // Make the timestamp and a random string the start of the job ID.
99
+ protoJob.id = `${timeStamp}-${getRandomID(Number.parseInt(randomIDLength, 10))}-`;
100
100
  // Add a sources property to the job.
101
101
  protoJob.sources = {
102
102
  script: script.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testilo",
3
- "version": "21.5.1",
3
+ "version": "21.5.3",
4
4
  "description": "Prepares and processes Testaro reports",
5
5
  "main": "aim.js",
6
6
  "scripts": {
@@ -19,14 +19,8 @@
19
19
  </header>
20
20
  <h2>Introduction</h2>
21
21
  <p>The table below compares __pageCount__ web pages on <a href="https://www.w3.org/WAI/fundamentals/accessibility-intro/">accessibility</a>. The page names are links to the pages on the web. The scores are links to digests that explain in detail how the scores were computed.</p>
22
- <p>The pages were:</p>
23
- <ol id="summary">
24
- <li>Tested by <a href="https://www.npmjs.com/package/testaro">Testaro</a> with script <code>__script__</code></li>
25
- <li>Scored by <a href="https://www.npmjs.com/package/testilo">Testilo</a> with procedure <code>__scorer__</code></li>
26
- <li>Digested by Testilo with procedure <code>__digester__</code></li>
27
- <li>Compared by Testilo with procedure <code>__comparer__</code></li>
28
- </ol>
29
- <p>Testaro used nine tools (Alfa, ASLint, Axe, Equal Access, HTML CodeSniffer, Nu Html Checker, Testaro, and WAVE) to perform about 915 automated accessibility tests. Testilo assigned a score to each page, with 0 being perfect.</p>
22
+ <p>The pages were tested by <a href="https://www.npmjs.com/package/testaro">Testaro</a>. Testaro used nine tools (Alfa, ASLint, Axe, Equal Access, HTML CodeSniffer, Nu Html Checker, Testaro, and WAVE) to perform about 900 automated accessibility tests.</p>
23
+ <p><a href="https://www.npmjs.com/package/testilo">Testilo</a> classified the problems found by these tests into <dfn>issues</dfn> and assigned a <dfn>score</dfn> to each page. A perfect score would be 0. Higher scores indicate more issues, more instances of them, more serious issues, and more of the tools reporting instances of issues.</p>
30
24
  <h2>Comparison</h2>
31
25
  <table class="allBorder">
32
26
  <caption>Accessibility scores of web pages</caption>
@@ -10,8 +10,8 @@ const fs = require('fs/promises');
10
10
 
11
11
  // CONSTANTS
12
12
 
13
- // Digester ID.
14
- const id = 'tcp38';
13
+ // Comparer ID.
14
+ const id = 'tcp39';
15
15
  // Newlines with indentations.
16
16
  const joiner = '\n ';
17
17
  const innerJoiner = '\n ';
@@ -65,10 +65,6 @@ const getTableBody = async bodyData => {
65
65
  const populateQuery = async (scoredReports, query) => {
66
66
  const data = await getData(scoredReports);
67
67
  query.pageCount = data.pageCount;
68
- query.script = 'ts37';
69
- query.scorer = 'tsp38';
70
- query.digester = 'tdp38';
71
- query.comparer = 'tcp38';
72
68
  query.tableBody = await getTableBody(data.bodyData);
73
69
  const date = new Date();
74
70
  query.dateISO = date.toISOString().slice(0, 10);