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