testilo 6.1.5 → 6.1.6

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": "testilo",
3
- "version": "6.1.5",
3
+ "version": "6.1.6",
4
4
  "description": "Client that scores and digests Testaro reports",
5
5
  "main": "aim.js",
6
6
  "scripts": {
@@ -12,11 +12,9 @@ const htmlEscape = textOrNumber => textOrNumber
12
12
  .toString()
13
13
  .replace(/&/g, '&')
14
14
  .replace(/</g, '&lt;');
15
- // Gets a row of the score-summary table.
16
- const getScoreRow = (component, score) => `<tr><th>${component}</th><td>${score}</td></tr>`;
17
15
  // Adds parameters to a query for a digest.
18
16
  exports.makeQuery = (report, query) => {
19
- // Add an HTML-safe copy of the host report to the query to be appended to the digest.
17
+ // Add an HTML-safe copy of the report to the query to be appended to the digest.
20
18
  const {script, host, score} = report;
21
19
  const reportJSON = JSON.stringify(report, null, 2);
22
20
  const reportJSONSafe = htmlEscape(reportJSON);
@@ -25,7 +23,7 @@ exports.makeQuery = (report, query) => {
25
23
  query.sp = 'sp19a';
26
24
  query.dp = 'dp19a';
27
25
  // Add the job data to the query.
28
- query.dateISO = report.endTime.slice(0, 10);
26
+ query.dateISO = report.jobData.endTime.slice(0, 10);
29
27
  query.dateSlash = query.dateISO.replace(/-/g, '/');
30
28
  if (host && host.what && host.which) {
31
29
  query.org = host.what;