mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 03:45:46 -06:00
test: fix slack media mock typing
(cherry picked from commitf62d8f7472) (cherry picked from commit5499dc9824)
This commit is contained in:
@@ -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,
|
||||
})),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user