mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 09:17:38 +00:00
refactor(media): dedupe runner proxy and video test fixtures
This commit is contained in:
@@ -54,3 +54,18 @@ export async function withAudioFixture(
|
||||
run,
|
||||
);
|
||||
}
|
||||
|
||||
export async function withVideoFixture(
|
||||
filePrefix: string,
|
||||
run: (params: MediaFixtureParams) => Promise<void>,
|
||||
) {
|
||||
await withMediaFixture(
|
||||
{
|
||||
filePrefix,
|
||||
extension: "mp4",
|
||||
mediaType: "video/mp4",
|
||||
fileContents: Buffer.from("video"),
|
||||
},
|
||||
run,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user