diff --git a/packages/core/entity/Annotation/mocks.ts b/packages/core/entity/Annotation/mocks.ts index 4c85c304..46064f07 100644 --- a/packages/core/entity/Annotation/mocks.ts +++ b/packages/core/entity/Annotation/mocks.ts @@ -29,4 +29,10 @@ export const annotationsJson = [ description: "Imaging objective", type: "Number", }, + { + annotationName: "Local File Path", + annotationDisplayName: "Local File Path", + description: "Path to file in on-premises storage.", + type: "Text", + }, ]; diff --git a/packages/core/services/AnnotationService/HttpAnnotationService/test/HttpAnnotationService.test.ts b/packages/core/services/AnnotationService/HttpAnnotationService/test/HttpAnnotationService.test.ts index 9d9db25d..e5e31af5 100644 --- a/packages/core/services/AnnotationService/HttpAnnotationService/test/HttpAnnotationService.test.ts +++ b/packages/core/services/AnnotationService/HttpAnnotationService/test/HttpAnnotationService.test.ts @@ -31,6 +31,16 @@ describe("HttpAnnotationService", () => { ); expect(annotations[0]).to.be.instanceOf(Annotation); }); + + it("renames Local File Path to File Path (Local)", async () => { + const annotationService = new HttpAnnotationService({ + fileExplorerServiceBaseUrl: FESBaseUrl.TEST, + httpClient, + }); + const annotations = await annotationService.fetchAnnotations(); + const localPathAnnotation = annotations.find((a) => a.name === "Local File Path"); + expect(localPathAnnotation?.displayName).to.equal("File Path (Local)"); + }); }); describe("fetchAnnotationValues", () => {