Skip to content

Commit

Permalink
File Path (Vast) instead of File Path (Local)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarrison committed Dec 20, 2024
1 parent 083456f commit da16e23
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe("<FileAnnotationList />", () => {
...TOP_LEVEL_FILE_ANNOTATIONS,
new Annotation({
annotationName: "Local File Path",
annotationDisplayName: "File Path (Local)",
annotationDisplayName: "File Path (Vast)",
description: "Path to file in on-premises storage.",
type: AnnotationType.STRING,
}),
Expand Down Expand Up @@ -71,7 +71,7 @@ describe("<FileAnnotationList />", () => {
for (const cellText of [
"File Path (Canonical)",
filePath,
"File Path (Local)",
"File Path (Vast)",
localPath,
]) {
expect(await findByText(cellText)).to.not.be.undefined;
Expand Down Expand Up @@ -118,7 +118,7 @@ describe("<FileAnnotationList />", () => {
);

// Assert
expect(() => getByText("File Path (Local)")).to.throw();
expect(() => getByText("File Path (Vast)")).to.throw();
["File Path (Canonical)", filePath].forEach((cellText) => {
expect(getByText(cellText)).to.not.be.undefined;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function renameAnnotation(annotation: AnnotationResponse): Annota
if (annotation.annotationName === AnnotationName.LOCAL_FILE_PATH) {
return {
...annotation,
annotationDisplayName: "File Path (Local)",
annotationDisplayName: "File Path (Vast)",
} as AnnotationResponse;
} else {
return annotation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ describe("HttpAnnotationService", () => {
expect(annotations[0]).to.be.instanceOf(Annotation);
});

it("renames Local File Path to File Path (Local)", async () => {
it("renames Local File Path to File Path (Vast)", 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)");
expect(localPathAnnotation?.displayName).to.equal("File Path (Vast)");
});
});

Expand Down

0 comments on commit da16e23

Please sign in to comment.