mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 02:18:25 +00:00
chore: Fix types in tests 43/N.
This commit is contained in:
@@ -618,7 +618,8 @@ describe("Agent-specific tool filtering", () => {
|
||||
yieldMs: 10,
|
||||
});
|
||||
|
||||
expect(result?.details.status).toBe("completed");
|
||||
const resultDetails = result?.details as { status?: string } | undefined;
|
||||
expect(resultDetails?.status).toBe("completed");
|
||||
});
|
||||
|
||||
it("should apply agent-specific exec host defaults over global defaults", async () => {
|
||||
@@ -673,6 +674,7 @@ describe("Agent-specific tool filtering", () => {
|
||||
host: "sandbox",
|
||||
yieldMs: 1000,
|
||||
});
|
||||
expect(helperResult?.details.status).toBe("completed");
|
||||
const helperDetails = helperResult?.details as { status?: string } | undefined;
|
||||
expect(helperDetails?.status).toBe("completed");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user