@nsshunt/ststestrunner 1.1.10 → 1.1.12
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.
package/dist/ststestrunner.mjs
CHANGED
|
@@ -1266,7 +1266,12 @@ function compare(tree1, tree2, invertible) {
|
|
|
1266
1266
|
_generate(tree1, tree2, patches, "", invertible);
|
|
1267
1267
|
return patches;
|
|
1268
1268
|
}
|
|
1269
|
-
|
|
1269
|
+
//#endregion
|
|
1270
|
+
//#region node_modules/fast-json-patch/index.mjs
|
|
1271
|
+
/**
|
|
1272
|
+
* Default export for backwards compat
|
|
1273
|
+
*/
|
|
1274
|
+
var fast_json_patch_default = Object.assign({}, core_exports, duplex_exports, {
|
|
1270
1275
|
JsonPatchError: PatchError,
|
|
1271
1276
|
deepClone: _deepClone,
|
|
1272
1277
|
escapePathComponent,
|
|
@@ -1276,13 +1281,18 @@ Object.assign({}, core_exports, duplex_exports, {
|
|
|
1276
1281
|
//#region src/libmodule/testCaseFhir07.ts
|
|
1277
1282
|
var TestCaseFhir07 = class extends TestCaseFhirQueryBase {
|
|
1278
1283
|
ExecuteQuery = async () => {
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1284
|
+
try {
|
|
1285
|
+
const client = await this.GetClient();
|
|
1286
|
+
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.runner.iteration, "3");
|
|
1287
|
+
const resource = (await client.GetResource("Person", personRecord.id)).body;
|
|
1288
|
+
const observer = fast_json_patch_default.observe(resource);
|
|
1289
|
+
resource.text.div = `Json Patched record TestCaseFhir07 ${this.runner.iteration}`;
|
|
1290
|
+
const patchRecord = fast_json_patch_default.generate(observer);
|
|
1291
|
+
return (await client.PatchResource("Person", personRecord.id, patchRecord, `application/json-patch+json`, `W/"3"`)).body;
|
|
1292
|
+
} catch (error) {
|
|
1293
|
+
console.error(error);
|
|
1294
|
+
throw error;
|
|
1295
|
+
}
|
|
1286
1296
|
};
|
|
1287
1297
|
};
|
|
1288
1298
|
//#endregion
|