testaro 30.0.4 → 30.0.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/package.json +1 -1
  2. package/watch.js +5 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "30.0.4",
3
+ "version": "30.0.5",
4
4
  "description": "Run 960 web accessibility tests from 9 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/watch.js CHANGED
@@ -178,14 +178,17 @@ const checkNetJob = async (servers, serverIndex, isForever, interval, noJobCount
178
178
  await checkNetJob(servers, serverIndex + 1, isForever, interval, noJobCount + 1);
179
179
  }
180
180
  // Otherwise, if the server sent a valid job:
181
- else if (id && sources) {
181
+ else if (id && sources && sources.target && sources.target.which) {
182
182
  // Add the agent to it.
183
183
  sources.agent = agent;
184
184
  // If the job specifies a report destination:
185
185
  const {sendReportTo} = sources;
186
186
  if (sendReportTo) {
187
187
  // Perform the job, adding result data to it.
188
- console.log(`${logStart}job ${id} for ${sendReportTo} (${nowString()})`);
188
+ const testee = sources.target.which;
189
+ console.log(
190
+ `${logStart}job ${id} (${nowString()})\n>> It will test ${testee}\n>> It will send report to ${sendReportTo}`
191
+ );
189
192
  await doJob(contentObj);
190
193
  let reportJSON = JSON.stringify(contentObj, null, 2);
191
194
  console.log(`Job ${id} finished (${nowString()})`);