@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.cjs
CHANGED
|
@@ -1289,7 +1289,12 @@ function compare(tree1, tree2, invertible) {
|
|
|
1289
1289
|
_generate(tree1, tree2, patches, "", invertible);
|
|
1290
1290
|
return patches;
|
|
1291
1291
|
}
|
|
1292
|
-
|
|
1292
|
+
//#endregion
|
|
1293
|
+
//#region node_modules/fast-json-patch/index.mjs
|
|
1294
|
+
/**
|
|
1295
|
+
* Default export for backwards compat
|
|
1296
|
+
*/
|
|
1297
|
+
var fast_json_patch_default = Object.assign({}, core_exports, duplex_exports, {
|
|
1293
1298
|
JsonPatchError: PatchError,
|
|
1294
1299
|
deepClone: _deepClone,
|
|
1295
1300
|
escapePathComponent,
|
|
@@ -1299,13 +1304,18 @@ Object.assign({}, core_exports, duplex_exports, {
|
|
|
1299
1304
|
//#region src/libmodule/testCaseFhir07.ts
|
|
1300
1305
|
var TestCaseFhir07 = class extends TestCaseFhirQueryBase {
|
|
1301
1306
|
ExecuteQuery = async () => {
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1307
|
+
try {
|
|
1308
|
+
const client = await this.GetClient();
|
|
1309
|
+
const personRecord = await this.GetPersonRecord(`${this.runner.options.personPrefix}`, this.runner.iteration, "3");
|
|
1310
|
+
const resource = (await client.GetResource("Person", personRecord.id)).body;
|
|
1311
|
+
const observer = fast_json_patch_default.observe(resource);
|
|
1312
|
+
resource.text.div = `Json Patched record TestCaseFhir07 ${this.runner.iteration}`;
|
|
1313
|
+
const patchRecord = fast_json_patch_default.generate(observer);
|
|
1314
|
+
return (await client.PatchResource("Person", personRecord.id, patchRecord, `application/json-patch+json`, `W/"3"`)).body;
|
|
1315
|
+
} catch (error) {
|
|
1316
|
+
console.error(error);
|
|
1317
|
+
throw error;
|
|
1318
|
+
}
|
|
1309
1319
|
};
|
|
1310
1320
|
};
|
|
1311
1321
|
//#endregion
|