@nsshunt/ststestrunner 1.1.126 → 1.1.127

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.
@@ -2227,9 +2227,27 @@ var TestCaseFhir09 = class extends TestCaseFhirQueryBase {
2227
2227
  const retVal = await client.DeleteResource("Person", personRecord.id, `W/"5"`);
2228
2228
  this._CheckOutputLongDurationError(__snapshot3, "await this.DeleteResource()");
2229
2229
  if (retVal.status === StatusCodes.UNAUTHORIZED) throw new Error("UNAUTHORIZED");
2230
- console.log("09");
2231
- console.log(personRecord);
2232
- console.log(retVal.body);
2230
+ const deletedRetValCheck = {
2231
+ resourceType: "OperationOutcome",
2232
+ issue: [{
2233
+ severity: "error",
2234
+ code: "deleted",
2235
+ diagnostics: `DeleteResource: Resource ${personRecord.id} version 6 has been deleted.`
2236
+ }]
2237
+ };
2238
+ const p1 = JSON.stringify(deletedRetValCheck);
2239
+ const p2 = JSON.stringify(retVal.body);
2240
+ if (p1.localeCompare(p2) !== 0) {
2241
+ this.runner.instrumentData.errorCount++;
2242
+ console.log("");
2243
+ console.log(chalk.red(` ==> 9.1 ************************************************************************************************`));
2244
+ console.log(p1);
2245
+ console.log(chalk.red(`************************************************************************************************`));
2246
+ console.log(p2);
2247
+ console.log(chalk.red(`************************************************************************************************`));
2248
+ console.log("");
2249
+ process.exit(1);
2250
+ }
2233
2251
  return retVal.body;
2234
2252
  } catch (error) {
2235
2253
  if (axios.isAxiosError(error)) {