mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 20:05:46 -06:00
test(auto-reply): canonicalize session export expectations (#118138)
This commit is contained in:
committed by
GitHub
parent
db7a3aa67c
commit
05ab518109
@@ -38,7 +38,7 @@ describe("writeSessionExportFile", () => {
|
||||
const result = await writeExport({ workspaceDir, requestedPath: targetPath });
|
||||
|
||||
expect(result).toEqual({
|
||||
absolutePath: path.join(workspaceDir, "exports", "session.html"),
|
||||
absolutePath: path.join(await fs.realpath(workspaceDir), "exports", "session.html"),
|
||||
displayPath: path.join("exports", "session.html"),
|
||||
});
|
||||
expect(await fs.readFile(result.absolutePath, "utf-8")).toBe("new export");
|
||||
@@ -86,7 +86,7 @@ describe("writeSessionExportFile", () => {
|
||||
const result = await writeExport({ workspaceDir: workspaceAlias, requestedPath });
|
||||
|
||||
expect(result).toEqual({
|
||||
absolutePath: path.join(workspaceDir, "exports", "session.html"),
|
||||
absolutePath: path.join(await fs.realpath(workspaceDir), "exports", "session.html"),
|
||||
displayPath: path.join("exports", "session.html"),
|
||||
});
|
||||
expect(await fs.readFile(result.absolutePath, "utf-8")).toBe("new export");
|
||||
|
||||
Reference in New Issue
Block a user