test: fix slack media mock typing

(cherry picked from commit f62d8f7472)
(cherry picked from commit 5499dc9824)
This commit is contained in:
Tideclaw
2026-06-10 17:49:54 +00:00
parent 5577f24505
commit d0ea845996
@@ -36,10 +36,10 @@ const fetchWithRuntimeDispatcherMock = vi.hoisted(() => vi.fn());
const saveRemoteMediaMock = vi.hoisted(() =>
vi.fn(async (params: Parameters<typeof import("../media.runtime.js").saveRemoteMedia>[0]) => ({
id: "saved-media-id",
path: `/tmp/${params.options.filePathHint ?? "slack-media"}`,
path: `/tmp/${params.filePathHint ?? "slack-media"}`,
size: 10,
contentType: params.options.fallbackContentType,
fileName: params.options.filePathHint,
contentType: params.fallbackContentType,
fileName: params.filePathHint,
})),
);