mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 16:31:23 +00:00
test: remove low-value unknown-session mirror guard case
This commit is contained in:
@@ -415,19 +415,6 @@ describe("appendAssistantMessageToSessionTranscript", () => {
|
||||
fs.rmSync(tempDir, { recursive: true, force: true });
|
||||
});
|
||||
|
||||
it("returns error for unknown sessionKey", async () => {
|
||||
fs.writeFileSync(storePath, JSON.stringify({}), "utf-8");
|
||||
const result = await appendAssistantMessageToSessionTranscript({
|
||||
sessionKey: "nonexistent",
|
||||
text: "test message",
|
||||
storePath,
|
||||
});
|
||||
expect(result.ok).toBe(false);
|
||||
if (!result.ok) {
|
||||
expect(result.reason).toContain("unknown sessionKey");
|
||||
}
|
||||
});
|
||||
|
||||
it("creates transcript file and appends message for valid session", async () => {
|
||||
const sessionId = "test-session-id";
|
||||
const sessionKey = "test-session";
|
||||
|
||||
Reference in New Issue
Block a user