Skip to content

Commit

Permalink
Adapt unit tests with new response header
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed May 17, 2024
1 parent 55efff9 commit b614ee6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/components/FilesDialog/FilesDialog.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ function getMockedBrowseResponse(param: RemoteFilesParams) {
throw Error(someErrorText);
}
const result = mockedOkApiRoutesMap.get(responseKey);
return { data: result };
const headers = new Map([["total_matches", result?.length.toString() ?? "0"]]);
return { data: result, headers };
}

const initComponent = async (props: { multiple: boolean; mode?: string }) => {
Expand Down

0 comments on commit b614ee6

Please sign in to comment.