mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 08:31:24 +00:00
chore: Fix types in tests 43/N.
This commit is contained in:
@@ -110,7 +110,8 @@ describe("createOpenClawCodingTools safeBins", () => {
|
||||
})();
|
||||
const text = result.content.find((content) => content.type === "text")?.text ?? "";
|
||||
|
||||
expect(result.details.status).toBe("completed");
|
||||
const resultDetails = result.details as { status?: string };
|
||||
expect(resultDetails.status).toBe("completed");
|
||||
expect(text).toContain(marker);
|
||||
});
|
||||
|
||||
@@ -152,7 +153,8 @@ describe("createOpenClawCodingTools safeBins", () => {
|
||||
});
|
||||
const text = result.content.find((content) => content.type === "text")?.text ?? "";
|
||||
|
||||
expect(result.details.status).toBe("completed");
|
||||
const blockedResultDetails = result.details as { status?: string };
|
||||
expect(blockedResultDetails.status).toBe("completed");
|
||||
expect(text).not.toContain(secret);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user