mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 19:04:58 +00:00
chore: Fix types in tests 28/N.
This commit is contained in:
@@ -45,9 +45,10 @@ describe("signal createSignalEventHandler inbound contract", () => {
|
||||
|
||||
expect(capturedCtx).toBeTruthy();
|
||||
expectInboundContextContract(capturedCtx!);
|
||||
const contextWithBody = capturedCtx as unknown as { Body?: string };
|
||||
// Sender should appear as prefix in group messages (no redundant [from:] suffix)
|
||||
expect(String(capturedCtx?.Body ?? "")).toContain("Alice");
|
||||
expect(String(capturedCtx?.Body ?? "")).toMatch(/Alice.*:/);
|
||||
expect(String(capturedCtx?.Body ?? "")).not.toContain("[from:");
|
||||
expect(String(contextWithBody.Body ?? "")).toContain("Alice");
|
||||
expect(String(contextWithBody.Body ?? "")).toMatch(/Alice.*:/);
|
||||
expect(String(contextWithBody.Body ?? "")).not.toContain("[from:");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user