From fbb2b54aeedb2a51e0434aa513529196af09164f Mon Sep 17 00:00:00 2001 From: Tameem Bin Haider Date: Tue, 31 Dec 2024 14:55:54 +0600 Subject: [PATCH] test: mock PractitionerRole history resources --- packages/workflow/test/handlers.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/workflow/test/handlers.ts b/packages/workflow/test/handlers.ts index e2cec74d1e0..d62f9a8ee1a 100644 --- a/packages/workflow/test/handlers.ts +++ b/packages/workflow/test/handlers.ts @@ -39,6 +39,19 @@ const practitionerRoleHandler = rest.get( } ) +const practitionerRoleHistoryHandler = rest.get( + 'http://localhost:3447/fhir/PractitionerRole/:practitionerId/_history', + (_, res, ctx) => { + return res( + ctx.json({ + resourceType: 'Bundle', + type: 'history', + entry: [] + }) + ) + } +) + const hierarchyHandler = rest.get( 'http://localhost:2021/locations/ce73938d-a188-4a78-9d19-35dfd4ca6957/hierarchy', (_req, res, ctx) => { @@ -155,6 +168,7 @@ const handlers = [ userHandler, practitionerHandler, practitionerRoleHandler, + practitionerRoleHistoryHandler, hierarchyHandler, locationHandler, notificationFlagsHandler,