@nsshunt/ststestrunner 1.1.132 → 1.1.134

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.
@@ -1184,9 +1184,38 @@ var TestCaseFhirBase = class {
1184
1184
  return true;
1185
1185
  };
1186
1186
  _GetDetail = () => {
1187
- const { runPrefix, testType, description } = this.runner.options;
1187
+ const options = this.runner.options;
1188
+ const { runPrefix, testType, description } = options;
1188
1189
  const { workerManagerId, iteration } = this.runner;
1189
- return `runPrefix: [${runPrefix}], testType: [${testType}], description: [${description}], workerManagerId: [${workerManagerId}], Iteration: [${iteration}]`;
1190
+ const rgbTable = [
1191
+ [
1192
+ 0,
1193
+ 100,
1194
+ 255
1195
+ ],
1196
+ [
1197
+ 75,
1198
+ 150,
1199
+ 255
1200
+ ],
1201
+ [
1202
+ 150,
1203
+ 180,
1204
+ 255
1205
+ ],
1206
+ [
1207
+ 190,
1208
+ 200,
1209
+ 255
1210
+ ],
1211
+ [
1212
+ 210,
1213
+ 230,
1214
+ 255
1215
+ ]
1216
+ ];
1217
+ const rgbTableRow = rgbTable[options.workerIndex % rgbTable.length];
1218
+ return chalk.rgb(rgbTableRow[0], rgbTableRow[1], rgbTableRow[2])(`runPrefix: [${runPrefix}], testType: [${testType}], description: [${description}], workerManagerId: [${workerManagerId}], Iteration: [${iteration}]`);
1190
1219
  };
1191
1220
  _CheckOutputLongDurationError = (snapshotStart, message) => {
1192
1221
  const snapShotEnd = performance.now();
@@ -1450,20 +1479,11 @@ var TestCaseFhir06 = class extends TestCaseFhirQueryBase {
1450
1479
  const checkRetVal = { ...retVal.body };
1451
1480
  const searchRetValCheck = {
1452
1481
  resourceType: "Bundle",
1453
- type: "searchset",
1454
- total: 0,
1455
- link: [{ relation: "self" }],
1456
- entry: []
1482
+ type: "searchset"
1457
1483
  };
1458
- searchRetValCheck.total = checkRetVal.total;
1459
- searchRetValCheck.entry = [];
1460
- for (let i = 0; i < checkRetVal.entry.length; i++) searchRetValCheck.entry.push({});
1461
- delete checkRetVal.link[0].url;
1462
- for (let i = 0; i < checkRetVal.entry.length; i++) {
1463
- delete checkRetVal.entry[i].fullUrl;
1464
- delete checkRetVal.entry[i].resource;
1465
- delete checkRetVal.entry[i].search;
1466
- }
1484
+ delete checkRetVal.total;
1485
+ delete checkRetVal.link;
1486
+ delete checkRetVal.entry;
1467
1487
  this.CheckReturnData(searchRetValCheck, checkRetVal);
1468
1488
  return retVal.body;
1469
1489
  };