mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 09:58:38 +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") {
|
if (result.kind !== "send") {
|
||||||
throw new Error("expected send result");
|
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");
|
const hostTmpOutsideOpenClaw = path.join(os.tmpdir(), "outside-openclaw", "test-media.png");
|
||||||
await expect(
|
await expect(
|
||||||
runMessageAction({
|
runMessageAction({
|
||||||
|
|||||||
Reference in New Issue
Block a user