testaro 2.2.2 → 2.2.5

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/index.js +5 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -220,8 +220,9 @@ const isValidLog = log => Array.isArray(log) && ! log.length;
220
220
  // Validates an options object.
221
221
  const isValidOptions = async options => {
222
222
  if (options) {
223
- const {script, batch, log, reports} = options;
224
- return isValidScript(script)
223
+ const {id, script, batch, log, reports} = options;
224
+ return id
225
+ && isValidScript(script)
225
226
  && isValidBatch(batch)
226
227
  && isValidLog(log)
227
228
  && isValidReports(reports);
@@ -1136,7 +1137,7 @@ const doBatch = async (options, reportTemplate, hostIndex = 0) => {
1136
1137
  hostReport.hostName = host.id;
1137
1138
  // Add data from the template to the host report.
1138
1139
  hostReport.orderName = reportTemplate.id;
1139
- hostReport.id = `${hostReport.orderName}-${host.id}`;
1140
+ hostReport.id = `${options.id}-${host.id}`;
1140
1141
  hostReport.orderUserName = reportTemplate.userName;
1141
1142
  hostReport.orderTime = reportTemplate.orderTime;
1142
1143
  hostReport.scriptName = reportTemplate.scriptName;
@@ -1210,7 +1211,7 @@ exports.handleRequest = async options => {
1210
1211
  },
1211
1212
  {
1212
1213
  event: 'timeStamp',
1213
- value: Math.floor((Date.now() - Date.UTC(2022, 1)) / 10000).toString(36)
1214
+ value: Math.floor((Date.now() - Date.UTC(2022, 1)) / 500).toString(36)
1214
1215
  }
1215
1216
  );
1216
1217
  // Add the batch size to the log if there is a batch.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "2.2.2",
3
+ "version": "2.2.5",
4
4
  "description": "Automation of accessibility testing",
5
5
  "main": "index.js",
6
6
  "scripts": {