mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-07 22:44:16 +00:00
test: normalize tmp media path assertion for windows
This commit is contained in:
@@ -706,7 +706,8 @@ describe("runMessageAction sandboxed media validation", () => {
|
||||
if (result.kind !== "send") {
|
||||
throw new Error("expected send result");
|
||||
}
|
||||
expect(result.sendResult?.mediaUrl).toBe(tmpFile);
|
||||
// runMessageAction normalizes media paths through platform resolution.
|
||||
expect(result.sendResult?.mediaUrl).toBe(path.resolve(tmpFile));
|
||||
const hostTmpOutsideOpenClaw = path.join(os.tmpdir(), "outside-openclaw", "test-media.png");
|
||||
await expect(
|
||||
runMessageAction({
|
||||
|
||||
Reference in New Issue
Block a user