mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 06:30:42 +00:00
test: tighten cli transcript session file assertion
This commit is contained in:
@@ -510,8 +510,9 @@ describe("CLI attempt execution", () => {
|
||||
embeddedAssistantGapFill: true,
|
||||
});
|
||||
const sessionFile = updatedFirst?.sessionFile;
|
||||
expect(sessionFile).toBeTruthy();
|
||||
if (!sessionFile) {
|
||||
expect(typeof sessionFile).toBe("string");
|
||||
expect(sessionFile?.length ?? 0).toBeGreaterThan(0);
|
||||
if (typeof sessionFile !== "string" || sessionFile.length === 0) {
|
||||
throw new Error("Expected CLI transcript session file.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user