@nsshunt/ststestrunner 1.1.163 → 1.1.165

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.
@@ -1549,7 +1549,7 @@ var TestCaseFhir04 = class extends TestCaseFhirQueryBase {
1549
1549
  this.runner.instrumentData.requestCount++;
1550
1550
  const compPersonRecord = { ...personRecord };
1551
1551
  const loadedPersonRecorded = { ...retVal.body };
1552
- const loadedRecordVersion = loadedPersonRecorded.meta.versionId;
1552
+ const loadedRecordVersion = parseInt(loadedPersonRecorded.meta.versionId);
1553
1553
  delete compPersonRecord.meta;
1554
1554
  delete loadedPersonRecorded.meta;
1555
1555
  if (loadedRecordVersion > 1) compPersonRecord.text.div = `Put record TestCaseFhir04 ${this.runner.iteration % this.GetMaxIteration(prefix)}`;
@@ -2270,7 +2270,7 @@ var TestCaseFhir06 = class extends TestCaseFhirQueryBase {
2270
2270
  const __snapshot4 = this._CheckOutputLongDurationError(__snapshot3, "await this.GetResource()");
2271
2271
  if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
2272
2272
  const resource = retVal.body;
2273
- const loadedRecordVersion = resource.meta.versionId;
2273
+ const loadedRecordVersion = parseInt(resource.meta.versionId);
2274
2274
  const patchText = `Json Patched record TestCaseFhir07 ${this.runner.iteration % this.GetMaxIteration(prefix)}`;
2275
2275
  const observer = fast_json_patch_default.observe(resource);
2276
2276
  resource.text.div = patchText;
@@ -2301,7 +2301,7 @@ var TestCaseFhir07 = class extends TestCaseFhirQueryBase {
2301
2301
  const __snapshot4 = this._CheckOutputLongDurationError(__snapshot3, "await this.GetResource()");
2302
2302
  if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
2303
2303
  const resource = retVal.body;
2304
- const loadedRecordVersion = resource.meta.versionId;
2304
+ const loadedRecordVersion = parseInt(resource.meta.versionId);
2305
2305
  const patchText = `Merge Patched record TestCaseFhir08 ${this.runner.iteration & this.GetMaxIteration(prefix)}`;
2306
2306
  resource.text.div = patchText;
2307
2307
  const retValPatched = await client.PatchResource("Person", personRecord.id, resource, `application/merge-patch+json`, `W/"${loadedRecordVersion}"`);
@@ -2329,7 +2329,8 @@ var TestCaseFhir08 = class extends TestCaseFhirQueryBase {
2329
2329
  const retVal = await client.GetResource("Person", personRecord.id);
2330
2330
  const __snapshot4 = this._CheckOutputLongDurationError(__snapshot3, "await this.GetResource()");
2331
2331
  if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
2332
- const loadedRecordVersion = retVal.body.meta.versionId;
2332
+ const resource = retVal.body;
2333
+ const loadedRecordVersion = parseInt(resource.meta.versionId);
2333
2334
  try {
2334
2335
  const retVal = await client.DeleteResource("Person", personRecord.id, `W/"${loadedRecordVersion}"`);
2335
2336
  this._CheckOutputLongDurationError(__snapshot4, "await this.DeleteResource()");