Skip to content

Commit

Permalink
Updated the dataset download test file to correct some new type compl…
Browse files Browse the repository at this point in the history
…aints that surfaced (#584)
  • Loading branch information
downiec authored Jan 9, 2024
1 parent 6e57521 commit 7896bf3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/components/Globus/DatasetDownload.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ const activeSearch: ActiveSearchQuery = getSearchFromUrl('project=test1');

const user = userEvent.setup();

const mockLoadValue = mockFunction((key: string) => {
return Promise.resolve(tempStorageGetMock(key));
const mockLoadValue = mockFunction((key: unknown) => {
return Promise.resolve(tempStorageGetMock(key as string));
});

const mockSaveValue = mockFunction((key: string, value: unknown) => {
tempStorageSetMock(key, value);
const mockSaveValue = mockFunction((key: unknown, value: unknown) => {
tempStorageSetMock(key as string, value);
return Promise.resolve({
msg: 'Updated temporary storage.',
data_key: key,
Expand Down

0 comments on commit 7896bf3

Please sign in to comment.