Skip to content

Commit

Permalink
add persistant display annotations test
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianWhitneyAI committed Apr 4, 2024
1 parent 13a90d0 commit 21ee35b
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ describe(`${RUN_IN_RENDERER} PersistentConfigServiceElectron`, () => {
name: "ZEN",
},
];

const expectedDisplayAnnotations = [
{
annotationDisplayName: "Foo",
annotationName: "foo",
description: "foo-long",
type: "string",
units: "string",
},
];

service.persist(PersistedConfigKeys.AllenMountPoint, expectedAllenMountPoint);
service.persist(PersistedConfigKeys.CsvColumns, expectedCsvColumns);
service.persist(PersistedConfigKeys.ImageJExecutable, expectedImageJExecutable);
Expand All @@ -53,12 +64,15 @@ describe(`${RUN_IN_RENDERER} PersistentConfigServiceElectron`, () => {
expectedHasUsedApplicationBefore
);
service.persist(PersistedConfigKeys.UserSelectedApplications, expectedUserSelectedApps);
service.persist(PersistedConfigKeys.DisplayAnnotations, expectedDisplayAnnotations);

const expectedConfig = {
[PersistedConfigKeys.AllenMountPoint]: expectedAllenMountPoint,
[PersistedConfigKeys.CsvColumns]: expectedCsvColumns,
[PersistedConfigKeys.ImageJExecutable]: expectedImageJExecutable,
[PersistedConfigKeys.HasUsedApplicationBefore]: expectedHasUsedApplicationBefore,
[PersistedConfigKeys.UserSelectedApplications]: expectedUserSelectedApps,
[PersistedConfigKeys.DisplayAnnotations]: expectedDisplayAnnotations,
};

// Act
Expand All @@ -85,6 +99,15 @@ describe(`${RUN_IN_RENDERER} PersistentConfigServiceElectron`, () => {
name: "ImageJ/Fiji",
},
],
[PersistedConfigKeys.DisplayAnnotations]: [
{
annotationDisplayName: "Foo",
annotationName: "foo",
description: "foo-long",
type: "string",
units: "string",
},
],
};

// Act
Expand Down

0 comments on commit 21ee35b

Please sign in to comment.