diff --git a/client/src/components/FilesDialog/FilesDialog.test.ts b/client/src/components/FilesDialog/FilesDialog.test.ts index 0880cd6aab89..adee6564cbfe 100644 --- a/client/src/components/FilesDialog/FilesDialog.test.ts +++ b/client/src/components/FilesDialog/FilesDialog.test.ts @@ -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 }) => {